Package org.zkoss.lang
Class SystemException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.zkoss.lang.SystemException
- All Implemented Interfaces:
Serializable,Messageable,MessageConst
- Direct Known Subclasses:
IllegalSyntaxException,OperationException,XelException
Indicates a system exception.
- Author:
- tomyeh
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.zkoss.mesg.MessageConst
MessageConst.BundleInfo -
Field Summary
FieldsFields inherited from interface org.zkoss.mesg.MessageConst
NULL_CODE -
Constructor Summary
ConstructorsConstructorDescriptionSystemException(int code) SystemException(int code, Object fmtArg) SystemException(int code, Object[] fmtArgs) SystemException(int code, Object[] fmtArgs, Throwable cause) Constructs an SystemException by use of an error code.SystemException(int code, Object fmtArg, Throwable cause) SystemException(int code, Throwable cause) SystemException(String msg) SystemException(String msg, Throwable cause) Constructs a SystemException by specifying message directly.SystemException(Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
_code
protected int _code
-
-
Constructor Details
-
SystemException
Constructs a SystemException by specifying message directly. -
SystemException
-
SystemException
-
SystemException
public SystemException() -
SystemException
Constructs an SystemException by use of an error code. The error code must be defined in one of properties files, e.g., msgsys.properties.- Parameters:
code- the error codefmtArgs- the format argumentscause- the chained throwable object
-
SystemException
-
SystemException
-
SystemException
-
SystemException
-
SystemException
public SystemException(int code)
-
-
Method Details
-
getCode
public final int getCode()Description copied from interface:MessageableGets the message code.- Specified by:
getCodein interfaceMessageable- Returns:
- the message code
-