Package org.cyclos.model
Class CyclosException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.cyclos.model.CyclosException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BusinessException,FrameworkException,InternalException,OidcException
public abstract class CyclosException extends RuntimeException
Base for all exceptions generated in Cyclos. The exceptions generated server-side are never internationalized. The only exception to this rule is the ValidationException that can contain a ValidationResult with the error messages already internationalized.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CyclosException()CyclosException(String message)CyclosException(String message, Throwable cause)CyclosException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(String name)StringgetMessage()Don't delete this method.voidsetAttribute(String name, Object value)booleanshouldGenerateLog()Returns whether the current exception should generate an error log (stored in the database with ErrorLogService)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getMessage
public String getMessage()
Don't delete this method. This is taken into account by the mobile generator- Overrides:
getMessagein classThrowable- See Also:
Throwable.getMessage()
-
shouldGenerateLog
public boolean shouldGenerateLog()
Returns whether the current exception should generate an error log (stored in the database with ErrorLogService)
-
-