org.biomoby.shared.data
Class MobyServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.biomoby.shared.MobyException
org.biomoby.shared.parser.ServiceException
org.biomoby.shared.data.MobyServiceException
- All Implemented Interfaces:
- Serializable
public class MobyServiceException
- extends ServiceException
- See Also:
- Serialized Form
Fields inherited from class org.biomoby.shared.parser.ServiceException |
COMMUNICATION_FAILURE, ERROR, INFO, INPUT_EMPTY_OBJECT, INPUT_INCORRECT_COLLECTION, INPUT_INCORRECT_NAMESPACE, INPUT_INCORRECT_PARAMETER, INPUT_INCORRECT_SIMPLE, INPUT_NOT_ACCEPTED, INPUT_REQUIRED_PARAMETER, INPUT_REQUIRED_PARAMETERS, INPUTS_INVALID, INTERNAL_PROCESSING_ERROR, NO_METADATA_AVAILABLE, NOT_IMPLEMENTED, NOT_RUNNABLE, NOT_RUNNING, NOT_TERMINATED, OK, PROTOCOLS_UNACCEPTED, UNKNOWN_NAME, UNKNOWN_STATE, WARNING |
Method Summary |
static int |
codeStringToCodeInt(String codeString)
Converts an error code string to an integer defined in ServiceException, or ERROR_CODE_UNKNOWN
if the code is not a standard one (3 digits and part of RFC 1863). |
static int |
severityStringToSeverityInt(String severityString)
Converts an error code string to an integer defined in ServiceException, or ERROR_CODE_UNKNOWN
if the code is not a standard one (3 digits and part of RFC 1863). |
Methods inherited from class org.biomoby.shared.parser.ServiceException |
error, error, extractExceptions, format, getDataName, getErrorCode, getErrorCodeAsString, getJobId, getMessage, getSeverity, getSeverityAsString, info, setDataName, setErrorCode, setJobId, setJobId, setMessage, setSeverity, setSeverity, toString, toXML, toXMLString, warning |
ERROR_CODE_UNKNOWN
public static final int ERROR_CODE_UNKNOWN
- This will be the error code assigned if none is available from the instatiating XML
- See Also:
- Constant Field Values
SEVERITY_UNKNOWN
public static final int SEVERITY_UNKNOWN
- See Also:
- Constant Field Values
SEVERITY_ERROR_STR
public static final String SEVERITY_ERROR_STR
- See Also:
- Constant Field Values
SEVERITY_WARNING_STR
public static final String SEVERITY_WARNING_STR
- See Also:
- Constant Field Values
SEVERITY_INFO_STR
public static final String SEVERITY_INFO_STR
- See Also:
- Constant Field Values
MobyServiceException
public MobyServiceException(Element e)
throws IllegalArgumentException
- Builds an instance of an exception from a DOM element. Useful when parsing a MOBY XML file.
- Throws:
IllegalArgumentException
MobyServiceException
public MobyServiceException(int severity,
int code,
String message)
MobyServiceException
public MobyServiceException(int severity,
int code,
String jobId,
String dataName)
MobyServiceException
public MobyServiceException(int severity,
int code,
String jobId,
String dataName,
String msg)
severityStringToSeverityInt
public static int severityStringToSeverityInt(String severityString)
- Converts an error code string to an integer defined in ServiceException, or ERROR_CODE_UNKNOWN
if the code is not a standard one (3 digits and part of RFC 1863).
codeStringToCodeInt
public static int codeStringToCodeInt(String codeString)
- Converts an error code string to an integer defined in ServiceException, or ERROR_CODE_UNKNOWN
if the code is not a standard one (3 digits and part of RFC 1863).
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010