Klasse ErrorObject
java.lang.Object
de.uplanet.lucy.server.composer.ixservlet.ErrorObject
An error object for the Velocity context.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetCauseOfType(String p_strExceptionClass) Get the first error cause of the given type.getError()Get the error hold by this object.booleanhasError()Check if this error object holds an error.booleanisCausedBy(String p_strExceptionClass) Check if the error is or is caused by an exception of the given type.booleanCheck if the error is or is caused by ajava.security.AccessControlException.booleanReturns true, if all errors should be suppressed.voidPut an error into this error object.
-
Konstruktordetails
-
ErrorObject
public ErrorObject()
-
-
Methodendetails
-
hasError
public boolean hasError()Check if this error object holds an error.- Gibt zurück:
trueif this error object holds an error, orfalseotherwise.
-
isCausedBy
Check if the error is or is caused by an exception of the given type.- Parameter:
p_strExceptionClass- The type of the exception.- Gibt zurück:
trueif this error object holds an error that is caused by the given exception type, orfalseotherwise.- Löst aus:
ClassNotFoundException- - Ifp_strExceptionClassis not found.- Siehe auch:
-
getCauseOfType
Get the first error cause of the given type.- Parameter:
p_strExceptionClass- The type of the exception.- Gibt zurück:
- The first cause of the given type, or
nullif no such cause could be found. - Löst aus:
ClassNotFoundException- - Ifp_strExceptionClassis not found.
-
isCausedByAccessControlException
public boolean isCausedByAccessControlException()Check if the error is or is caused by ajava.security.AccessControlException.- Gibt zurück:
trueif this error object holds an error that is caused by ajava.security.AccessControlException, orfalseotherwise.
-
getError
Get the error hold by this object.- Gibt zurück:
- The error, or
nullifhasError()isfalse.
-
isSilentMode
public boolean isSilentMode()Returns true, if all errors should be suppressed.- Gibt zurück:
trueif the error should be suppressed.
-
setError
Put an error into this error object.- Parameter:
p_error- The error to be set.
-