@Typed public abstract class ExceptionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static IllegalStateException |
ambiguousDefaultErrorViewDefinitionException(Class<? extends ViewConfig> newDef,
Class<? extends ViewConfig> existingDef)
Creates an exception if there are multiple classes which represent the same default-error-view
|
static IllegalStateException |
ambiguousViewConfigRootException(Class storedPageClass,
Class viewConfigRootClass)
Creates an exception if there are multiple classes annotated with
InlineViewConfigRoot in an web-app. |
static IllegalArgumentException |
ambiguousViewDefinitionException(String viewId,
Class<? extends ViewConfig> newDef,
Class<? extends ViewConfig> existingDef)
Creates an exception if there are multiple classes which represent the same view-id
|
static RuntimeException |
conversationNotEditableException(Conversation conversation)
Creates an exception in case of a custom implementation of
Conversation which doesn't implement
EditableConversation |
static IllegalArgumentException |
conversationNotFoundException(String conversationKey)
Creates an exception if there is no conversation with the given key
|
static IllegalArgumentException |
invalidPhasesCallbackMethod(Class targetClass,
Method method)
Creates an exception if a method is annotated with
BeforePhase or AfterPhase and
has an unsupported signature |
static IllegalStateException |
missingInlineViewConfigRootMarkerException(Class<? extends ViewConfig> viewDefinitionClass)
Creates an exception if
Page
is used for a page bean and there is no class annotated with InlineViewConfigRoot
to mark the package root |
static RuntimeException |
tooManyOpenWindowException()
Creates an exception which signals that a user opened too many windows.
|
static IllegalStateException |
unsupportedPhasesLifecycleCallback()
Creates an exception in case of an unsupported usage of
BeforePhase |
static RuntimeException |
windowContextManagerNotEditableException(WindowContextManager windowContextManager)
Creates an exception in case of a custom implementation of
WindowContextManager which doesn't implement
EditableWindowContextManager |
static RuntimeException |
windowContextNotEditableException(WindowContext windowContext)
Creates an exception in case of a custom implementation of
WindowContext which doesn't implement
EditableWindowContext |
public static RuntimeException tooManyOpenWindowException()
public static RuntimeException windowContextManagerNotEditableException(WindowContextManager windowContextManager)
WindowContextManager which doesn't implement
EditableWindowContextManagerwindowContextManager - found window-context-manager instancepublic static RuntimeException windowContextNotEditableException(WindowContext windowContext)
WindowContext which doesn't implement
EditableWindowContextwindowContext - found window-context instancepublic static RuntimeException conversationNotEditableException(Conversation conversation)
Conversation which doesn't implement
EditableConversationconversation - found conversation instancepublic static IllegalArgumentException invalidPhasesCallbackMethod(Class targetClass, Method method)
BeforePhase or AfterPhase and
has an unsupported signaturetargetClass - class which contains the methodmethod - annotated but invalid methodpublic static IllegalStateException unsupportedPhasesLifecycleCallback()
BeforePhasepublic static IllegalArgumentException conversationNotFoundException(String conversationKey)
conversationKey - current conversation-keypublic static IllegalStateException missingInlineViewConfigRootMarkerException(Class<? extends ViewConfig> viewDefinitionClass)
Page
is used for a page bean and there is no class annotated with InlineViewConfigRoot
to mark the package rootviewDefinitionClass - class with the invalid usagepublic static IllegalStateException ambiguousViewConfigRootException(Class storedPageClass, Class viewConfigRootClass)
InlineViewConfigRoot in an web-app.storedPageClass - registered class which hosts InlineViewConfigRootviewConfigRootClass - current class which also hosts InlineViewConfigRootpublic static IllegalArgumentException ambiguousViewDefinitionException(String viewId, Class<? extends ViewConfig> newDef, Class<? extends ViewConfig> existingDef)
viewId - current view-idnewDef - current view-config classexistingDef - registered view-config classpublic static IllegalStateException ambiguousDefaultErrorViewDefinitionException(Class<? extends ViewConfig> newDef, Class<? extends ViewConfig> existingDef)
newDef - current view-config classexistingDef - registered view-config classCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.