Package com.portal.pcm
Class EBufException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.portal.pcm.PortalException
com.portal.pcm.EBufException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ApplicationException
,DeterminateException
,IndeterminateException
,RetryableException
Signals that a Portal Library exception has occurred.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEBufException
(int location, int error, int field, int recordID, int reserved, int line, Object obj) Constructs an instance ofEBufException
.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 ofEBufException
.EBufException
(int location, int error, int field, int recordID, Object obj) Constructs an instance ofEBufException
.EBufException
(int error, int field, int recordID, Object obj) Constructs an instance ofEBufException
.EBufException
(int location, int error, Object obj) Constructs an instance ofEBufException
.EBufException
(int error, Object obj) Constructs an instance ofEBufException
. -
Method Summary
Modifier and TypeMethodDescriptiongetDetailedErrorString
(PortalContext ctx, Locale locale) Returns the detailed error message, if any.getDetailedHelpString
(PortalContext ctx, Locale locale) Returns the detailed error message help text, if any.int
getError()
Returns the error code.Returns the error message.int
int
getField()
Returns the storable class field number that caused the error.Returns the field name string that caused the error.Returns the filename from which the exception was sent.int
getLine()
Returns the line number from which the exception was sent.int
Returns the number of the module that found the error.Returns the module that found the error.Throwable overideint
Returns the output FList of the opcode that caused this exception.int
Returns the record ID associated with the field that caused the error.int
Returns reserved error data.int
int
void
log()
Logs the exception to the default error logvoid
Logs the exception to the specified error logtoString()
Converts the error buffer information to a string.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
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 ofEBufException
.- Parameters:
location
- - Component at which the error is thrown, Refer "BRM Error Locations" for list of possible valueserror
- - The error code, Refer "BRM Error Code" for list of possible valuesfield
- - The field number in FList that caused the errorrecordID
- - The error record IDreserved
- - Reserved error dataline
- - The line number at which the exception was sentfileName
- - The filename at which the exception was sentfailData
- - The exception causing FListfacility
- - Portal facility domain numbermessageID
- - The error message IDtime
- - Timestamp of exceptionversion
- - version flagargs
- - Argument FListchain
- - Nested exceptionreserved2
- - 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 ofEBufException
.- Parameters:
location
- - Component at which the error is thrown, Refer "BRM Error Locations" for list of possible valueserror
- - The error code, Refer "BRM Error Code" for list of possible valuesfield
- - The field number in FList that caused the errorrecordID
- - The error record IDreserved
- - Reserved error dataline
- - The line number at which the exception was sentobj
- - An Object parameter, related to the exception- Since:
- Infranet 5.5
-
EBufException
Constructs an instance ofEBufException
.- Parameters:
location
- - Component at which the error is thrown, Refer "BRM Error Locations" for list of possible valueserror
- - The error code, Refer "BRM Error Code" for list of possible valuesfield
- - The field number in FList that caused the errorrecordID
- - The error record IDobj
- - An Object parameter, related to the exception- Since:
- Infranet 5.5
-
EBufException
Constructs an instance ofEBufException
.- Parameters:
error
- - The error code, Refer "BRM Error Code" for list of possible valuesfield
- - The field number in FList that caused the errorrecordID
- - The error record IDobj
- - An Object parameter, related to the exception- Since:
- Infranet 5.5
-
EBufException
Constructs an instance ofEBufException
.- Parameters:
location
- - Component at which the error is thrown, Refer "BRM Error Locations" for list of possible valueserror
- - The error code, Refer "BRM Error Code" for list of possible valuesobj
- - An Object parameter, related to the exception- Since:
- Infranet 5.5
-
EBufException
Constructs an instance ofEBufException
.- Parameters:
error
- - The error code, Refer "BRM Error Code" for list of possible valuesobj
- - An Object parameter, related to the exception- Since:
- Infranet 5.5
-
-
Method Details
-
getMessage
Throwable overide- Overrides:
getMessage
in classThrowable
-
getLocation
public int getLocation()Returns the number of the module that found the error.- Returns:
- Module ID
- Since:
- Infranet 5.5
-
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
Returns the error message.- Returns:
- Error Message or null
- Since:
- Infranet 5.5
-
getDetailedErrorString
Returns the detailed error message, if any.- Parameters:
ctx
- A PortalContext, used to read the DBlocale
- A locale for the error string- Returns:
- a string containing the error message, with arguments formatted, if any
- Since:
- Infranet 6.0
-
getDetailedHelpString
Returns the detailed error message help text, if any.- Parameters:
ctx
- A PortalContext, used to read the DBlocale
- 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
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
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
-
getMessageID
public int getMessageID() -
getErrorTime
-
getVersion
public int getVersion() -
getReserved2
public int getReserved2() -
getArgsFList
-
getNestedError
-
log
public void log()Logs the exception to the default error log- Since:
- Infranet 5.5
-
log
Logs the exception to the specified error log- Parameters:
elog
- - log for the PCM library error- Since:
- Infranet 5.5
-
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
Converts the error buffer information to a string. This is for logging and debugging, so it doesn't need to be localized.
-