Class TRuntimeException

All Implemented Interfaces:
Serializable, StateInf
Direct Known Subclasses:
TRuntimeException.CONCURRENT_UPDATE, TRuntimeException.EXTERNAL_SERVICE_UNAVAILABLE, TRuntimeException.FIXITY_CHECK_FAILS, TRuntimeException.GENERAL_EXCEPTION, TRuntimeException.INVALID_ARCHITECTURE, TRuntimeException.INVALID_CONFIGURATION, TRuntimeException.INVALID_DATA_FORMAT, TRuntimeException.INVALID_OR_MISSING_PARM, TRuntimeException.LOCKING_ERROR, TRuntimeException.REQUEST_ELEMENT_UNSUPPORTED, TRuntimeException.REQUEST_INVALID, TRuntimeException.REQUEST_ITEM_EXISTS, TRuntimeException.REQUESTED_ITEM_NOT_FOUND, TRuntimeException.SQL_EXCEPTION, TRuntimeException.UNIMPLEMENTED_CODE, TRuntimeException.USER_NOT_AUTHENTICATED, TRuntimeException.USER_NOT_AUTHORIZED

public class TRuntimeException extends RuntimeException implements StateInf
mrt Exception
Author:
dloy
See Also:
  • Field Details

  • Constructor Details

    • TRuntimeException

      public TRuntimeException(TExceptionEnum status, Exception ex)
      The constructor set the status code and no message
      Parameters:
      status - - the int status code associated with this exception
    • TRuntimeException

      public TRuntimeException(TExceptionEnum status, String msg)
      This constuctor sets the message and status code associated with this exception.
      Parameters:
      status - - the int status code
      msg - - the String message
    • TRuntimeException

      public TRuntimeException(TExceptionEnum status, String msg, Exception ex)
      The constructor set the status code and no message
      Parameters:
      msg - - the String message
      status - - the int status code associated with this exception
  • Method Details

    • setTException

      protected void setTException(TExceptionEnum status, String msg, Exception ex)
    • getStatus

      public TExceptionEnum getStatus()
      return the status code
    • getRemoteException

      public Exception getRemoteException()
      Return any remote exception stored as part of creating TException
      Returns:
      remote exception
    • getClassName

      public String getClassName()
      Return name of class where this exception occurred
      Returns:
      exception originating exception
    • getMethodName

      public String getMethodName()
      Return name of method where exception occurred
      Returns:
      originating name of method for this exception
    • getLineNumber

      public int getLineNumber()
      program code line number for this exception
      Returns:
      program line number
    • getStatusName

      public String getStatusName()
      value of status
    • getStatusDescription

      public String getStatusDescription()
      return the status description
    • getHTTPResponse

      public int getHTTPResponse()
      return the status description
    • getError

      public String getError()
      return the description
    • getTrace

      public String getTrace()
      return the stack trace
    • getLocation

      public String getLocation()
      location of exception
      Returns:
      exception location
    • toString

      public String toString()
      toString returns this exception as a string
      Overrides:
      toString in class Throwable
      Returns:
      the status and message
    • getDescription

      public static String getDescription(TExceptionEnum mnemonic)
      get a String message associated with an integer mnemonic code
      Parameters:
      int - mnemonic integer associated with exception
      Returns:
      String message from messages Hashtable
    • getDescription

      public String getDescription()
      get a String message associated with the MExceptionEnum.-- non-static version
      Returns:
      String message from messages Hashtable
    • setDetail

      public void setDetail(String detail)
      set the String detail message to give more information on an error
      Parameters:
      String - detail message
    • getDetail

      public String getDetail()
      get the String detail message, more information on an error
      Returns:
      String detail message
    • dump

      protected String dump(String header)