public class ServiceException extends Exception implements TransferableCreator
< ServiceException>
element.Modifier and Type | Field and Description |
---|---|
static String |
AUTHENTICATION_FAILED |
static String |
AUTHORIZATION_FAILED |
static String |
ERROR_MESSAGE |
static String |
INVALID_FORMAT |
static String |
INVALID_SAMLRESPONSE |
static String |
INVALID_SESSION |
protected String |
m_code |
static String |
PASS_FORMATION_ERROR |
static String |
SERVICE_ERROR |
static String |
SESSION_EXPIRED |
Constructor and Description |
---|
ServiceException(String message,
String code)
Constructs an Exception with a detailed message.
|
ServiceException(String message,
String code,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static ServiceException |
createFromXML(InputSource in)
Creates an instance of this class from an XML file.
|
Transferable |
getAsTransferable() |
String |
getErrorCode() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String AUTHENTICATION_FAILED
public static final String AUTHORIZATION_FAILED
public static final String PASS_FORMATION_ERROR
public static final String SESSION_EXPIRED
public static final String INVALID_FORMAT
public static final String INVALID_SESSION
public static final String SERVICE_ERROR
public static final String INVALID_SAMLRESPONSE
protected String m_code
public static final String ERROR_MESSAGE
public ServiceException(String message, String code)
message
- The message associated with the exception.code
- Error code describing the exception. Code values are defines in the WAS and WSS specification.
However, it is recommended to use the constants of this class, which completely reproduce the
specified error codes.public String getErrorCode()
public static ServiceException createFromXML(InputSource in)
in
- a service excpetion XML documentSAXException
IOException
public Transferable getAsTransferable()
getAsTransferable
in interface TransferableCreator
Copyright © 2004–2018 52north.org. All rights reserved.