public class DefaultAcsJException extends AcsJException
ErrorTrace object
can't be converted to a genuine Java exception for one of the
following reasons:
ErrorTrace,
because the original exception was not thrown in Java.
AcsJException,
e.g. any of the java.lang exceptions.
In order to not lose the information contained in
ErrorTrace or AcsJException, we reconstruct
the non-ACS exception as a DefaultAcsJException,
stating the original exception class in the message string.
m_file, m_host, m_line, m_method, m_process, m_properties, m_severity, m_sourceObject, m_threadName, m_timeMilli| Constructor and Description |
|---|
DefaultAcsJException(java.lang.String message,
int errType,
int errCode,
java.lang.String shortDescription) |
DefaultAcsJException(java.lang.String message,
int errType,
int errCode,
java.lang.String shortDescription,
java.lang.String javaNativeExName) |
| Modifier and Type | Method and Description |
|---|---|
protected ErrorTrace |
createSingleErrorTrace()
Overwrites the java class name in the ErrorTrace obtained from
AcsJException#createSingleErrorTraceLogRecord(),
to keep the information about the original exception if possible. |
protected int |
getErrorCode()
Forces a subclass to choose an ACS error code.
|
protected int |
getErrorType()
Forces a subclass to choose an ACS error type.
|
java.lang.String |
getShortDescription()
Returns the short description which is a hardcoded text particular for a (type, code) combination.
|
org.omg.CORBA.UserException |
toCorbaException()
Unlike other exception classes, this class does not correspond directly
to an IDL defined type safe exception.
|
java.lang.String |
toString() |
createSingleErrorTrace, getErrorTrace, getFile, getHost, getLine, getMethod, getNameValueArray, getProcess, getProperty, getSeverity, getSourceObject, getThreadName, getTimestampMillis, getTraceDepth, log, setProcessName, setProperty, setSeverity, toAcsJCompletionpublic DefaultAcsJException(java.lang.String message,
int errType,
int errCode,
java.lang.String shortDescription)
public DefaultAcsJException(java.lang.String message,
int errType,
int errCode,
java.lang.String shortDescription,
java.lang.String javaNativeExName)
public org.omg.CORBA.UserException toCorbaException()
alma.ACSErr.ACSException.toCorbaException in class AcsJExceptionAcsJException.toCorbaException()protected int getErrorType()
AcsJExceptiongetErrorType in class AcsJExceptionAcsJException.getErrorType()protected int getErrorCode()
AcsJExceptiongetErrorCode in class AcsJExceptionAcsJException.getErrorCode()public java.lang.String getShortDescription()
AcsJExceptionabstract because the exception class that corresponds to an error type
(but not an error code) would otherwise have to overload it with returning an empty string.getShortDescription in class AcsJExceptionAcsJException.getShortDescription()protected ErrorTrace createSingleErrorTrace()
AcsJException#createSingleErrorTraceLogRecord(),
to keep the information about the original exception if possible.createSingleErrorTrace in class AcsJExceptionAcsJException.createSingleErrorTrace()public java.lang.String toString()
toString in class AcsJException