Class ErrorObject
java.lang.Object
de.uplanet.lucy.server.composer.ixservlet.ErrorObject
An error object for the Velocity context.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCauseOfType
(String p_strExceptionClass) Get the first error cause of the given type.getError()
Get the error hold by this object.boolean
hasError()
Check if this error object holds an error.boolean
isCausedBy
(String p_strExceptionClass) Check if the error is or is caused by an exception of the given type.boolean
Check if the error is or is caused by ajava.security.AccessControlException
.boolean
Returns true, if all errors should be suppressed.void
Put an error into this error object.
-
Constructor Details
-
ErrorObject
public ErrorObject()
-
-
Method Details
-
hasError
public boolean hasError()Check if this error object holds an error.- Returns:
true
if this error object holds an error, orfalse
otherwise.
-
isCausedBy
Check if the error is or is caused by an exception of the given type.- Parameters:
p_strExceptionClass
- The type of the exception.- Returns:
true
if this error object holds an error that is caused by the given exception type, orfalse
otherwise.- Throws:
ClassNotFoundException
- - Ifp_strExceptionClass
is not found.- See Also:
-
getCauseOfType
Get the first error cause of the given type.- Parameters:
p_strExceptionClass
- The type of the exception.- Returns:
- The first cause of the given type, or
null
if no such cause could be found. - Throws:
ClassNotFoundException
- - Ifp_strExceptionClass
is not found.
-
isCausedByAccessControlException
public boolean isCausedByAccessControlException()Check if the error is or is caused by ajava.security.AccessControlException
.- Returns:
true
if this error object holds an error that is caused by ajava.security.AccessControlException
, orfalse
otherwise.
-
getError
Get the error hold by this object.- Returns:
- The error, or
null
ifhasError()
isfalse
.
-
isSilentMode
public boolean isSilentMode()Returns true, if all errors should be suppressed.- Returns:
true
if the error should be suppressed.
-
setError
Put an error into this error object.- Parameters:
p_error
- The error to be set.
-