public class GeneralFaultRpc extends Object
Constructor and Description |
---|
GeneralFaultRpc(org.springframework.http.HttpStatus status,
ErrorExtEnum error,
Exception exception)
Creates new fault response.
|
GeneralFaultRpc(org.springframework.http.HttpStatus status,
IntegrationException ex)
Creates new fault response.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
Gets errorCode: 'O_E001' (string) - internal error code.
|
String |
getHttpDesc()
Gets httpDesc: 'No Content' (string) - description of HTTP status.
|
int |
getHttpStatus()
Gets httpStatus: 204 (number) - HTTP status code.
|
String |
getMessage()
Gets message: 'Message describing the error' (string) - a description of the error in default language.
|
String |
getMessageI18n()
Gets messageI18n: 'Message describing the error' (string,) - a description of the error in localized language.
|
OffsetDateTime |
getTimestamp()
Gets timestamp: 2016-12-10T18:21:08+0100 (string): timestamp when error occurred.
|
String |
getType()
Gets type: 'java.lang.RuntimeException' (string) - type of error (=class name of the exception).
|
String |
toString() |
public GeneralFaultRpc(org.springframework.http.HttpStatus status, ErrorExtEnum error, Exception exception)
status
- HTTP statuserror
- Errorexception
- Exceptionpublic GeneralFaultRpc(org.springframework.http.HttpStatus status, IntegrationException ex)
status
- HTTP statusex
- Integration exceptionpublic OffsetDateTime getTimestamp()
public int getHttpStatus()
public String getHttpDesc()
public String getErrorCode()
public String getType()
public String getMessage()
@Nullable public String getMessageI18n()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.