Package | Description |
---|---|
org.openhubframework.openhub.admin.web.common.rpc | |
org.openhubframework.openhub.admin.web.message.rpc | |
org.openhubframework.openhub.api.common | |
org.openhubframework.openhub.api.entity |
Main (business) entities.
|
org.openhubframework.openhub.api.exception | |
org.openhubframework.openhub.api.exception.validation |
Validation exceptions.
|
org.openhubframework.openhub.core.common.asynch.msg |
Message services and operations with them.
|
org.openhubframework.openhub.core.common.exception |
Defines exceptions hierarchy and defines global error handling policy.
|
org.openhubframework.openhub.modules |
Modules encapsulates various interfaces to external systems
- each module represents one input/output interface of the integration platform.
|
org.openhubframework.openhub.spi.msg | |
org.openhubframework.openhub.test | |
org.openhubframework.openhub.test.data |
Test data.
|
Constructor and Description |
---|
GeneralFaultRpc(org.springframework.http.HttpStatus status,
ErrorExtEnum error,
Exception exception)
Creates new fault response.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageBaseRpc.setErrorCode(ErrorExtEnum errorCode) |
Modifier and Type | Method and Description |
---|---|
static void |
Constraints.hasText(String text,
String message,
ErrorExtEnum errorCode)
Assert that the given String has valid text content; that is, it must not
be
null and must contain at least one non-whitespace character. |
static void |
Constraints.isNull(Object object,
String message,
ErrorExtEnum errorCode)
Assert that an object is
null . |
static void |
Constraints.isTrue(Boolean expression,
String message,
ErrorExtEnum errorCode)
Assert a boolean expression, throwing
IllegalArgumentException
if the test result is false . |
static void |
Constraints.notNull(Object object,
String message,
ErrorExtEnum errorCode)
Assert that an object is not
null . |
Modifier and Type | Method and Description |
---|---|
ErrorExtEnum[] |
ErrorsCatalog.getCodes()
Get error codes of catalog.
|
ErrorExtEnum |
Message.getFailedErrorCode()
Gets error code if last try was unsuccessful with error.
|
Modifier and Type | Method and Description |
---|---|
void |
Message.setFailedErrorCode(ErrorExtEnum failedErrorCode) |
Constructor and Description |
---|
ErrorsCatalog(Class<? extends ErrorExtEnum> type,
ErrorExtEnum[] codes)
Constructor to create
ErrorsCatalog based upon type and error code entries. |
ErrorsCatalog(ErrorExtEnum[] codes)
Default constructor to create error catalog based upon registered error codes.
|
ErrorsCatalog(String name,
ErrorExtEnum[] codes)
Constructor to create
ErrorsCatalog based upon name and error code entries. |
Constructor and Description |
---|
ErrorsCatalog(Class<? extends ErrorExtEnum> type,
ErrorExtEnum[] codes)
Constructor to create
ErrorsCatalog based upon type and error code entries. |
Modifier and Type | Class and Description |
---|---|
class |
InternalErrorEnum
Catalog of internal error codes.
|
Modifier and Type | Field and Description |
---|---|
static ErrorExtEnum |
NoDataFoundException.ERROR_CODE |
static ErrorExtEnum |
MultipleDataFoundException.ERROR_CODE |
Modifier and Type | Method and Description |
---|---|
ErrorExtEnum |
IntegrationException.getError()
Gets the error code.
|
Constructor and Description |
---|
BusinessException(ErrorExtEnum error) |
BusinessException(ErrorExtEnum error,
String msg) |
BusinessException(ErrorExtEnum error,
String msg,
Throwable t) |
IntegrationException(ErrorExtEnum error)
Creates new integration exception with specified error code.
|
IntegrationException(ErrorExtEnum error,
String msg)
Creates new integration exception with specified error code and message.
|
IntegrationException(ErrorExtEnum error,
String msg,
Throwable t)
Creates new integration exception with specified error code, message and exception.
|
Constructor and Description |
---|
IllegalDataException(ErrorExtEnum error,
String msg)
Creates validation exception with the specified error code and message.
|
IllegalDataException(ErrorExtEnum error,
String msg,
Throwable cause)
Creates validation exception with the specified error code, message and cause.
|
InputValidationException(org.springframework.validation.BindingResult bindingResult,
ErrorExtEnum error)
Creates exception with binding errors and specific error code.
|
ValidationException(ErrorExtEnum error)
Creates validation exception with the specified error code.
|
ValidationException(ErrorExtEnum error,
String msg)
Creates validation exception with the specified error code and message.
|
ValidationException(ErrorExtEnum error,
String msg,
Throwable cause)
Creates validation exception with the specified error code, message and cause.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageServiceImpl.setStateFailed(Message msg,
ErrorExtEnum errCode,
String errDesc) |
void |
MessageServiceImpl.setStateFailed(Message msg,
Exception ex,
ErrorExtEnum errCode,
String customData,
Map<String,Object> props) |
void |
MessageServiceImpl.setStatePartlyFailed(Message msg,
Exception ex,
ErrorExtEnum errCode,
String customData,
Map<String,Object> props) |
Modifier and Type | Method and Description |
---|---|
static ErrorExtEnum |
ExceptionTranslator.getError(Throwable ex)
Gets
ErrorExtEnum of specified exception. |
protected abstract ErrorExtEnum |
AbstractSoapExceptionFilter.getErrorCodeForException(Exception faultException)
Returns
error code for the specified exception. |
Modifier and Type | Method and Description |
---|---|
static String |
ExceptionTranslator.composeErrorMessage(ErrorExtEnum error,
Exception ex)
Composes error message.
|
Modifier and Type | Class and Description |
---|---|
class |
ErrorEnum
Catalog of custom error codes.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageService.setStateFailed(Message msg,
ErrorExtEnum errCode,
String errDesc)
Changes state of the message to
MsgStateEnum.FAILED . |
void |
MessageService.setStateFailed(Message msg,
Exception ex,
ErrorExtEnum errCode,
String customData,
Map<String,Object> props)
Changes state of the message to
MsgStateEnum.FAILED . |
void |
MessageService.setStatePartlyFailed(Message msg,
Exception ex,
ErrorExtEnum errCode,
String customData,
Map<String,Object> props)
Changes state of the message to
MsgStateEnum.PARTLY_FAILED . |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractTest.assertErrorCode(ErrorExtEnum error,
ErrorExtEnum expError)
Asserts
error codes . |
Modifier and Type | Class and Description |
---|---|
class |
ErrorTestEnum
Catalog of error codes for tests - for test purposes only.
|
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.