|
Oracle® Content Services Web Services Java API Reference 10g Release 1 (10.1.1) B19047-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.lang.Throwable
java.lang.Exception
oracle.ifs.fdk.FdkException
The exception thrown by the framework.
Method Summary | |
java.lang.String |
getDetailedErrorCode() Returns the detailed error code that may provide more information about the error. |
java.lang.String |
getErrorCode() Returns the main error code. |
FdkExceptionEntry[] |
getExceptionEntries() If this is an aggregate exception, it will return the individual entries, otherwise it returns null . |
NamedValue[] |
getInfo() Returns the optional info for this error. |
static FdkException |
getInstance(java.lang.String detailedErrorCode, NamedValue[] info) Constructs a new instance. |
static FdkException |
getInstance(java.lang.String detailedErrorCode, java.lang.Throwable cause, NamedValue[] info) Maps any Throwable to and FdkException, setting the error code explicitly. |
static FdkException |
getInstance(java.lang.Throwable cause) Maps any Throwable to an FdkException. |
static FdkException |
getInstance(java.lang.Throwable cause, NamedValue[] info) Maps any Throwable to an FdkException. |
static FdkException |
getInstance(java.lang.Throwable cause, NamedValue[] info, boolean log) Gives control over what needs to be logged. |
java.lang.String |
getServerStackTraceId() Returns the server stack trace ID for this exception. |
java.util.Map |
infoMap() Returns the options info for this error as a map. |
void |
printLocalizedStackTrace(java.io.PrintStream stream) Prints the stack trace of this FdkException to the specified PrintStream. |
void |
printStackTrace(java.io.PrintWriter pw) Prints the stack trace of this FdkException to the specified PrintWriter. |
java.lang.String |
toLogString(boolean includeStackTraces) Returns a string representation of this exception. |
java.lang.String |
toLogString(boolean includeMainStackTrace, boolean includeEntryStackTraces) Returns a string representation of this exception. |
java.lang.String |
toString() Returns a minimal string representation of this exception (ERROR_CODE:DETAILED_ERROR_CODE). |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String getDetailedErrorCode()
public java.lang.String getErrorCode()
public FdkExceptionEntry[] getExceptionEntries()
null
.public NamedValue[] getInfo()
public static FdkException getInstance(java.lang.String detailedErrorCode, NamedValue[] info)
detailedErrorCode
- The detailed error code.info
- The optional info about the error. It can be null
.public static FdkException getInstance(java.lang.String detailedErrorCode, java.lang.Throwable cause, NamedValue[] info)
detailedErrorCode
- The detailed error code.cause
- The exception that was the cause for this exception.info
- The optional info about the error. It can be null
.public static FdkException getInstance(java.lang.Throwable cause)
cause
- The Throwable that occured.public static FdkException getInstance(java.lang.Throwable cause, NamedValue[] info)
cause
- The Throwable that occured.info
- The additional information that should be merged with the info extracted. This information is considered the master, identical entries in the extracted information will be ignored. Can be null
.public static FdkException getInstance(java.lang.Throwable cause, NamedValue[] info, boolean log)
cause
- The exception that was the cause for this exception.info
- The additional information that should be merged with the info extracted. This information is considered the master, identical entries in the extracted information will be ignored. Can be null
.log
- If true the exception will always be logged, otherwise the exception may be logged if the implementation decides the error is important enough to be logged.public java.lang.String getServerStackTraceId()
getCause()
.public java.util.Map infoMap()
public void printLocalizedStackTrace(java.io.PrintStream stream)
stream
- The PrintStream to write to.public void printStackTrace(java.io.PrintWriter pw)
public java.lang.String toLogString(boolean includeStackTraces)
includeStackTraces
- If true a more verbose string will be generated which also includes all the stack traces for the main exception as well as any entries.public java.lang.String toLogString(boolean includeMainStackTrace, boolean includeEntryStackTraces)
includeMainStackTrace
- A boolean, true will include all the stack stack traces for the main FdkException.includeEntryStackTraces
- A boolean, true will include all the stack traces for any entries.public java.lang.String toString()
toLogString()
|
Oracle® Content Services Web Services Java API Reference 10g Release 1 (10.1.1) B19047-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |