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:
java.io.Serializable
,Messageable
,MessageConst
- Direct Known Subclasses:
DspException
,IllegalSyntaxException
,OperationException
,UiException
,XelException
public class SystemException extends java.lang.RuntimeException implements Messageable
Indicates a system exception.- Author:
- tomyeh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SystemException.Aide
Utilities.-
Nested classes/interfaces inherited from interface org.zkoss.mesg.MessageConst
MessageConst.BundleInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected int
_code
-
Fields inherited from interface org.zkoss.mesg.MessageConst
NULL_CODE
-
-
Constructor Summary
Constructors Constructor Description SystemException()
SystemException(int code)
SystemException(int code, java.lang.Object fmtArg)
SystemException(int code, java.lang.Object[] fmtArgs)
SystemException(int code, java.lang.Object[] fmtArgs, java.lang.Throwable cause)
Constructs an SystemException by use of an error code.SystemException(int code, java.lang.Object fmtArg, java.lang.Throwable cause)
SystemException(int code, java.lang.Throwable cause)
SystemException(java.lang.String msg)
SystemException(java.lang.String msg, java.lang.Throwable cause)
Constructs a SystemException by specifying message directly.SystemException(java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Gets the message code.
-
-
-
Constructor Detail
-
SystemException
public SystemException(java.lang.String msg, java.lang.Throwable cause)
Constructs a SystemException by specifying message directly.
-
SystemException
public SystemException(java.lang.String msg)
-
SystemException
public SystemException(java.lang.Throwable cause)
-
SystemException
public SystemException()
-
SystemException
public SystemException(int code, java.lang.Object[] fmtArgs, java.lang.Throwable cause)
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
public SystemException(int code, java.lang.Object fmtArg, java.lang.Throwable cause)
-
SystemException
public SystemException(int code, java.lang.Object[] fmtArgs)
-
SystemException
public SystemException(int code, java.lang.Object fmtArg)
-
SystemException
public SystemException(int code, java.lang.Throwable cause)
-
SystemException
public SystemException(int code)
-
-
Method Detail
-
getCode
public final int getCode()
Description copied from interface:Messageable
Gets the message code.- Specified by:
getCode
in interfaceMessageable
- Returns:
- the message code
-
-