public class OCException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RESOURCE_NOT_FOUND
Deprecated.
|
static java.lang.String |
SERVER_ERROR
Deprecated.
|
Constructor and Description |
---|
OCException() |
OCException(java.lang.String message)
This constructor should only be used if the code is creating a brand new exception.
|
OCException(java.lang.String errorType,
java.lang.String message)
Deprecated.
errorType constants should not be used. Create a subtype exception instead
|
OCException(java.lang.String message,
java.lang.Throwable cause)
Creates an OCException derived from another exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorType()
Deprecated.
|
java.lang.String |
getStackTraceAsString() |
static java.lang.String |
getStackTraceAsString(java.lang.Throwable e) |
@Deprecated public static final java.lang.String RESOURCE_NOT_FOUND
@Deprecated public static final java.lang.String SERVER_ERROR
public OCException()
public OCException(java.lang.String message)
OCException(String, Throwable)
constructor instead.message
- @Deprecated public OCException(java.lang.String errorType, java.lang.String message)
OCException
class;errorType
- message
- public OCException(java.lang.String message, java.lang.Throwable cause)
message
- the error messagecause
- the exception that caused this OCException