|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.6.0) E10653-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jbo.service.errors.ServiceExceptionHelper
public class ServiceExceptionHelper
Helper class containing methods to convert between JBOException and ServiceException
Field Summary | |
---|---|
static java.lang.String |
DML_COMMIT
|
static java.lang.String |
DML_DELETE
|
static java.lang.String |
DML_INSERT
|
static java.lang.String |
DML_RELEASE_SAVEPOINT
|
static java.lang.String |
DML_ROLLBACK
|
static java.lang.String |
DML_ROLLBACK_TO_SAVEPOINT
|
static java.lang.String |
DML_SAVEPOINT
|
static java.lang.String |
DML_UPDATE
|
static java.util.HashMap |
JBO_DML_OPERTATION_MAP
|
static java.util.HashMap |
MESSAGE_DML_OPERATION_MAP
|
static java.lang.String |
SEVERITY_ERROR
|
static java.lang.String |
SEVERITY_RECOVERABLE_ERROR
|
static java.lang.String |
SEVERITY_UNKNOWN
|
static java.lang.String |
SEVERITY_WARNING
|
Constructor Summary | |
---|---|
ServiceExceptionHelper()
|
Method Summary | |
---|---|
protected static ServiceErrorMessage |
createServiceErrorMessage(java.lang.String message,
java.lang.String errorCode,
commonj.sdo.DataObject sourceDataObject)
construct ServiceErrorMessage |
static JboException |
extractJboException(commonj.sdo.helper.HelperContext helperContext,
java.lang.Throwable svcExp)
|
static JboException |
extractJboException(java.lang.Throwable svcExp)
|
static ServiceException |
extractServiceException(java.lang.Throwable ex,
commonj.sdo.DataObject source,
java.lang.String exceptionReturnMode)
Helper method to compose ServiceException |
static commonj.sdo.DataObject |
getExceptionReturnObject(commonj.sdo.DataObject source,
java.lang.String exceptionReturnMode)
|
protected Row |
getExceptionRow(JboException e,
ApplicationModule am)
Get the row that throws the exception. |
static JboException |
getJboException(commonj.sdo.helper.HelperContext helperContext,
ServiceErrorMessage errorMsg)
|
static JboException |
getJboException(ServiceErrorMessage errorMsg)
|
static java.lang.String |
getLocalizedMessage(java.lang.String errorCode,
java.lang.Object[] params)
|
static int |
getOperationIntValue(java.lang.String operation)
|
static java.lang.String |
getOperationStringValue(int operation)
|
static ServiceErrorMessage |
getServiceErrorMessage(JboException jboexception,
commonj.sdo.DataObject source,
java.lang.String exceptionReturnMode,
ServiceErrorMessage parentServiceErrorMessage)
Helper method to retrieve ServiceErrorMessage from jboexception and source dataobject. |
static ServiceErrorMessage |
getServiceErrorMessage(java.lang.Throwable exception,
commonj.sdo.DataObject source,
java.lang.String exceptionReturnMode)
|
static int |
getSeverityIntValue(java.lang.String severity)
|
static java.lang.String |
getSeverityStringValue(int severity)
mapping jbo error severity to string value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SEVERITY_ERROR
public static final java.lang.String SEVERITY_RECOVERABLE_ERROR
public static final java.lang.String SEVERITY_WARNING
public static final java.lang.String SEVERITY_UNKNOWN
public static java.util.HashMap MESSAGE_DML_OPERATION_MAP
public static java.util.HashMap JBO_DML_OPERTATION_MAP
public static final java.lang.String DML_INSERT
public static final java.lang.String DML_UPDATE
public static final java.lang.String DML_DELETE
public static final java.lang.String DML_ROLLBACK
public static final java.lang.String DML_COMMIT
public static final java.lang.String DML_SAVEPOINT
public static final java.lang.String DML_ROLLBACK_TO_SAVEPOINT
public static final java.lang.String DML_RELEASE_SAVEPOINT
Constructor Detail |
---|
public ServiceExceptionHelper()
Method Detail |
---|
public static java.lang.String getSeverityStringValue(int severity)
severity
-
public static int getSeverityIntValue(java.lang.String severity)
public static java.lang.String getOperationStringValue(int operation)
public static int getOperationIntValue(java.lang.String operation)
public static ServiceErrorMessage getServiceErrorMessage(JboException jboexception, commonj.sdo.DataObject source, java.lang.String exceptionReturnMode, ServiceErrorMessage parentServiceErrorMessage)
jboexception
- the source JboExceptionsource
- source dataobject related with this JboExceptionexceptionReturnMode
- the return mode for exception handling.
It determines how the source dataobject appears in the error message.parentServiceErrorMessage
- the parent error
public static JboException extractJboException(java.lang.Throwable svcExp)
public static JboException extractJboException(commonj.sdo.helper.HelperContext helperContext, java.lang.Throwable svcExp)
public static JboException getJboException(ServiceErrorMessage errorMsg)
public static JboException getJboException(commonj.sdo.helper.HelperContext helperContext, ServiceErrorMessage errorMsg)
public static ServiceErrorMessage getServiceErrorMessage(java.lang.Throwable exception, commonj.sdo.DataObject source, java.lang.String exceptionReturnMode)
public static commonj.sdo.DataObject getExceptionReturnObject(commonj.sdo.DataObject source, java.lang.String exceptionReturnMode)
public static java.lang.String getLocalizedMessage(java.lang.String errorCode, java.lang.Object[] params)
protected static ServiceErrorMessage createServiceErrorMessage(java.lang.String message, java.lang.String errorCode, commonj.sdo.DataObject sourceDataObject)
message
- the error message stringerrorCode
- the error codesourceDataObject
- the source dataObject that is related with this error
protected Row getExceptionRow(JboException e, ApplicationModule am)
e
- the exception
public static ServiceException extractServiceException(java.lang.Throwable ex, commonj.sdo.DataObject source, java.lang.String exceptionReturnMode)
ex
- the original exception to build ServiceExceptionsource
- the source DataObject that relates with the original exceptionexceptionReturnMode
- the return mode determining how much of source dataobject to be included in ServiceException
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.6.0) E10653-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |