public class UnauthorizedServiceException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CODE_EMPTY_SVC_MGMR
Exception object that indicates the service manager is empty with no service definitions.
|
static java.lang.String |
CODE_UNAUTHZ_SERVICE
Error code that indicates the service is unauthorized for use.
|
Constructor and Description |
---|
UnauthorizedServiceException(java.lang.String message)
Construct the exception object with the associated error code.
|
UnauthorizedServiceException(java.lang.String code,
java.lang.String message)
Constructs an UnauthorizedServiceException with a custom message and the
root cause of this exception.
|
UnauthorizedServiceException(java.lang.String message,
java.lang.Throwable cause)
Constructs an UnauthorizedServiceException with a custom message and the
root cause of this exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
The error code associated with this exception.
|
public static final java.lang.String CODE_UNAUTHZ_SERVICE
public static final java.lang.String CODE_EMPTY_SVC_MGMR
public UnauthorizedServiceException(java.lang.String message)
message
- the error messagepublic UnauthorizedServiceException(java.lang.String code, java.lang.String message)
message
- an explanatory message. Maybe null or blank.code
- the error code mapped to the messaged bundle.public UnauthorizedServiceException(java.lang.String message, java.lang.Throwable cause)
message
- an explanatory message.cause
- the root cause of the exception.