Version: 1.1.1

org.biomoby.shared.data
Class MobyServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.biomoby.shared.MobyException
              extended by org.biomoby.shared.parser.ServiceException
                  extended by org.biomoby.shared.data.MobyServiceException
All Implemented Interfaces:
Serializable

public class MobyServiceException
extends ServiceException

See Also:
Serialized Form

Field Summary
static int ERROR_CODE_UNKNOWN
          This will be the error code assigned if none is available from the instatiating XML
static String SEVERITY_ERROR_STR
           
static String SEVERITY_INFO_STR
           
static int SEVERITY_UNKNOWN
           
static String SEVERITY_WARNING_STR
           
 
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
 
Constructor Summary
MobyServiceException(Element e)
          Builds an instance of an exception from a DOM element.
MobyServiceException(int severity, int code, String message)
           
MobyServiceException(int severity, int code, String jobId, String dataName)
           
MobyServiceException(int severity, int code, String jobId, String dataName, String msg)
           
 
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
 
Methods inherited from class org.biomoby.shared.MobyException
formatAndLog, getOriginalException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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).


Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010