public class UnauthorizedServiceException extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
static String |
CODE_EMPTY_SVC_MGMR
Exception object that indicates the service manager is empty with no service definitions.
|
static String |
CODE_UNAUTHZ_SERVICE
Error code that indicates the service is unauthorized for use.
|
| Constructor and Description |
|---|
UnauthorizedServiceException(String message)
Construct the exception object with the associated error code.
|
UnauthorizedServiceException(String code,
String message)
Constructs an UnauthorizedServiceException with a custom message and the
root cause of this exception.
|
UnauthorizedServiceException(String message,
Throwable cause)
Constructs an UnauthorizedServiceException with a custom message and the
root cause of this exception.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
The error code associated with this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final String CODE_UNAUTHZ_SERVICE
public static final String CODE_EMPTY_SVC_MGMR
public UnauthorizedServiceException(String message)
message - the error messagepublic UnauthorizedServiceException(String code, String message)
message - an explanatory message. Maybe null or blank.code - the error code mapped to the messaged bundle.public final String getCode()
Copyright © 2004-2015 Apereo. All Rights Reserved.