Class EBufException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApplicationException, DeterminateException, IndeterminateException, RetryableException

public class EBufException extends PortalException
Signals that a Portal Library exception has occurred.
See Also:
  • Constructor Details

    • EBufException

      public EBufException(int location, int error, int field, int recordID, int reserved, int line, String fileName, FList failData, int facility, int messageID, Date time, int version, FList args, EBufException chain, int reserved2)
      Constructs an instance of EBufException.
      Parameters:
      location - - Component at which the error is thrown, Refer "BRM Error Locations" for list of possible values
      error - - The error code, Refer "BRM Error Code" for list of possible values
      field - - The field number in FList that caused the error
      recordID - - The error record ID
      reserved - - Reserved error data
      line - - The line number at which the exception was sent
      fileName - - The filename at which the exception was sent
      failData - - The exception causing FList
      facility - - Portal facility domain number
      messageID - - The error message ID
      time - - Timestamp of exception
      version - - version flag
      args - - Argument FList
      chain - - Nested exception
      reserved2 - - Reserved error data
      Since:
      Infranet 5.5
    • EBufException

      public EBufException(int location, int error, int field, int recordID, int reserved, int line, Object obj)
      Constructs an instance of EBufException.
      Parameters:
      location - - Component at which the error is thrown, Refer "BRM Error Locations" for list of possible values
      error - - The error code, Refer "BRM Error Code" for list of possible values
      field - - The field number in FList that caused the error
      recordID - - The error record ID
      reserved - - Reserved error data
      line - - The line number at which the exception was sent
      obj - - An Object parameter, related to the exception
      Since:
      Infranet 5.5
    • EBufException

      public EBufException(int location, int error, int field, int recordID, Object obj)
      Constructs an instance of EBufException.
      Parameters:
      location - - Component at which the error is thrown, Refer "BRM Error Locations" for list of possible values
      error - - The error code, Refer "BRM Error Code" for list of possible values
      field - - The field number in FList that caused the error
      recordID - - The error record ID
      obj - - An Object parameter, related to the exception
      Since:
      Infranet 5.5
    • EBufException

      public EBufException(int error, int field, int recordID, Object obj)
      Constructs an instance of EBufException.
      Parameters:
      error - - The error code, Refer "BRM Error Code" for list of possible values
      field - - The field number in FList that caused the error
      recordID - - The error record ID
      obj - - An Object parameter, related to the exception
      Since:
      Infranet 5.5
    • EBufException

      public EBufException(int location, int error, Object obj)
      Constructs an instance of EBufException.
      Parameters:
      location - - Component at which the error is thrown, Refer "BRM Error Locations" for list of possible values
      error - - The error code, Refer "BRM Error Code" for list of possible values
      obj - - An Object parameter, related to the exception
      Since:
      Infranet 5.5
    • EBufException

      public EBufException(int error, Object obj)
      Constructs an instance of EBufException.
      Parameters:
      error - - The error code, Refer "BRM Error Code" for list of possible values
      obj - - An Object parameter, related to the exception
      Since:
      Infranet 5.5
  • Method Details

    • getMessage

      public String getMessage()
      Throwable overide
      Overrides:
      getMessage in class Throwable
    • getLocation

      public int getLocation()
      Returns the number of the module that found the error.
      Returns:
      Module ID
      Since:
      Infranet 5.5
    • getLocationString

      public String getLocationString()
      Returns the module that found the error.
      Returns:
      Module Name
      Since:
      Infranet 5.5
    • getError

      public int getError()
      Returns the error code.
      Returns:
      Error Code
      Since:
      Infranet 5.5
    • getErrorString

      public String getErrorString()
      Returns the error message.
      Returns:
      Error Message or null
      Since:
      Infranet 5.5
    • getDetailedErrorString

      public String getDetailedErrorString(PortalContext ctx, Locale locale)
      Returns the detailed error message, if any.
      Parameters:
      ctx - A PortalContext, used to read the DB
      locale - A locale for the error string
      Returns:
      a string containing the error message, with arguments formatted, if any
      Since:
      Infranet 6.0
    • getDetailedHelpString

      public String getDetailedHelpString(PortalContext ctx, Locale locale)
      Returns the detailed error message help text, if any.
      Parameters:
      ctx - A PortalContext, used to read the DB
      locale - A locale for the error string
      Returns:
      A string containg help text for a detailed message, if any
      Since:
      Infranet 6.0
    • getField

      public int getField()
      Returns the storable class field number that caused the error.
      Returns:
      Field ID
      Since:
      Infranet 5.5
    • getFieldString

      public String getFieldString()
      Returns the field name string that caused the error.
      Returns:
      Field name
      Since:
      Infranet 5.5
    • getRecordID

      public int getRecordID()
      Returns the record ID associated with the field that caused the error.
      Returns:
      Record ID
      Since:
      Infranet 5.5
    • getReserved

      public int getReserved()
      Returns reserved error data.
      Returns:
      Reserved Information
      Since:
      Infranet 5.5
    • getLine

      public int getLine()
      Returns the line number from which the exception was sent. This is generally local data.
      Returns:
      Line number where exception was thrown.
      Since:
      Infranet 5.5
    • getFileName

      public String getFileName()
      Returns the filename from which the exception was sent. This is generally local data.
      Returns:
      File name where exception was thrown.
      Since:
      Infranet 5.5
    • getFacility

      public int getFacility()
    • getFacilityString

      public String getFacilityString()
    • getMessageID

      public int getMessageID()
    • getErrorTime

      public Date getErrorTime()
    • getVersion

      public int getVersion()
    • getReserved2

      public int getReserved2()
    • getArgsFList

      public FList getArgsFList()
    • getNestedError

      public EBufException getNestedError()
    • log

      public void log()
      Logs the exception to the default error log
      Since:
      Infranet 5.5
    • log

      public void log(ErrorLog elog)
      Logs the exception to the specified error log
      Parameters:
      elog - - log for the PCM library error
      Since:
      Infranet 5.5
    • getOpcodeFList

      public FList getOpcodeFList()
      Returns the output FList of the opcode that caused this exception. Returns null if there is no FList or the exception was thrown from a different location.
      Returns:
      The output FList from the opcode call.
    • toString

      public String toString()
      Converts the error buffer information to a string. This is for logging and debugging, so it doesn't need to be localized.
      Overrides:
      toString in class Throwable
      Returns:
      The error buffer formatted as a string.
      Since:
      Infranet 5.5