public class ServiceResultException extends Exception
StatusCodes,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected StatusCode |
statusCode |
protected String |
text |
| Constructor and Description |
|---|
ServiceResultException(int statusCode)
Constructor for ServiceResultException.
|
ServiceResultException(int statusCode,
String text)
Constructor for ServiceResultException.
|
ServiceResultException(int statusCode,
Throwable reason,
String text) |
ServiceResultException(StatusCode statusCode)
Constructor for ServiceResultException.
|
ServiceResultException(StatusCode statusCode,
String text)
Constructor for ServiceResultException.
|
ServiceResultException(StatusCode statusCode,
Throwable reason)
Constructor for ServiceResultException.
|
ServiceResultException(StatusCode statusCode,
Throwable reason,
String text)
Constructor for ServiceResultException.
|
ServiceResultException(String message)
Constructor for ServiceResultException.
|
ServiceResultException(Throwable reason)
Constructor for ServiceResultException.
|
ServiceResultException(UnsignedInteger statusCode)
Constructor for ServiceResultException.
|
ServiceResultException(UnsignedInteger statusCode,
String text)
Constructor for ServiceResultException.
|
ServiceResultException(UnsignedInteger statusCode,
Throwable reason)
Constructor for ServiceResultException.
|
ServiceResultException(UnsignedInteger statusCode,
Throwable reason,
String text)
Constructor for ServiceResultException.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAdditionalTextField()
getAdditionalTextField.
|
String |
getMessage() |
StatusCode |
getStatusCode()
Returns the reason
StatusCode. |
ServiceResult |
toServiceResult()
Converts the error into a service result.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected final StatusCode statusCode
protected final String text
public ServiceResultException(int statusCode)
Constructor for ServiceResultException.
statusCode - a int.public ServiceResultException(int statusCode,
String text)
Constructor for ServiceResultException.
statusCode - a int.text - a String object.public ServiceResultException(StatusCode statusCode)
Constructor for ServiceResultException.
statusCode - a StatusCode object.public ServiceResultException(StatusCode statusCode, String text)
Constructor for ServiceResultException.
statusCode - a StatusCode object.text - a String object.public ServiceResultException(StatusCode statusCode, Throwable reason)
Constructor for ServiceResultException.
statusCode - a StatusCode object.reason - a Throwable object.public ServiceResultException(StatusCode statusCode, Throwable reason, String text)
Constructor for ServiceResultException.
statusCode - a StatusCode object.reason - a Throwable object.text - a String object.public ServiceResultException(String message)
Constructor for ServiceResultException.
message - a String object.public ServiceResultException(Throwable reason)
Constructor for ServiceResultException.
reason - a Throwable object.public ServiceResultException(UnsignedInteger statusCode)
Constructor for ServiceResultException.
statusCode - a UnsignedInteger object.public ServiceResultException(UnsignedInteger statusCode, String text)
Constructor for ServiceResultException.
statusCode - a UnsignedInteger object.text - a String object.public ServiceResultException(UnsignedInteger statusCode, Throwable reason)
Constructor for ServiceResultException.
statusCode - a UnsignedInteger object.reason - a Throwable object.public ServiceResultException(UnsignedInteger statusCode, Throwable reason, String text)
Constructor for ServiceResultException.
statusCode - a UnsignedInteger object.reason - a Throwable object.text - a String object.public String getAdditionalTextField()
getAdditionalTextField.
String object.public String getMessage()
getMessage in class Throwablepublic StatusCode getStatusCode()
StatusCode.public ServiceResult toServiceResult()
Copyright © 2026. All rights reserved.