Class SystemException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int _code  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode()
      Gets the message code.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • _code

        protected int _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 code
        fmtArgs - the format arguments
        cause - 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 interface Messageable
        Returns:
        the message code