diff options
author | Artur Signell <artur@vaadin.com> | 2013-03-28 16:04:24 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-03-31 13:09:15 +0000 |
commit | f23f2533c669e25ae9a49ea8aa0e849576bdca2e (patch) | |
tree | 0acbc4e09d136b4e221d1a41483cb094763a3e72 /server/src/com/vaadin/ui/UIDetachedException.java | |
parent | af4fdcda594c392eb417dc6291fbb98fa6474a90 (diff) | |
download | vaadin-framework-f23f2533c669e25ae9a49ea8aa0e849576bdca2e.tar.gz vaadin-framework-f23f2533c669e25ae9a49ea8aa0e849576bdca2e.zip |
Redefined UI.runSafely so it throws an exception if session can't be locked (#11219)
Change-Id: I300bfb25c4040d0df18d3a11594efe2ce6b0679d
Diffstat (limited to 'server/src/com/vaadin/ui/UIDetachedException.java')
-rw-r--r-- | server/src/com/vaadin/ui/UIDetachedException.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/UIDetachedException.java b/server/src/com/vaadin/ui/UIDetachedException.java new file mode 100644 index 0000000000..07207b0bf3 --- /dev/null +++ b/server/src/com/vaadin/ui/UIDetachedException.java @@ -0,0 +1,42 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.vaadin.ui; + +/** + * Exception thrown if the UI has been detached when it should not be. + * + * @author Vaadin Ltd + * @since 7.1 + */ +public class UIDetachedException extends RuntimeException { + + public UIDetachedException() { + super(); + } + + public UIDetachedException(String message, Throwable cause) { + super(message, cause); + } + + public UIDetachedException(String message) { + super(message); + } + + public UIDetachedException(Throwable cause) { + super(cause); + } + +} |