org.w3c.ddr.simple.exception
Class SystemException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.w3c.ddr.simple.exception.SystemException
All Implemented Interfaces:
java.io.Serializable

public class SystemException
extends java.lang.RuntimeException

This exception represents a failure of the DDR system.

Author:
Jo Rabin (dotMobi),
Jose Manuel Cantera Fonseca (Telefonica I+D),
Rotan Hanrahan (MobileAware),
Ignacio Marin (Fundacion CTIC)
Copyright © 2008 W3C® (MIT, ERCIM, Keio), All Rights Reserved.
W3C liability, trademark and document use rules apply.
See Also:
Serialized Form

Field Summary
static int CANNOT_PROCEED
          Code for 'Cannot proceed'.
protected  int code
          Represents a machine-understandable code to refine/identify the cause of the exception.
static int ILLEGAL_ARGUMENT
          Code for 'illegal argument'.
 
Constructor Summary
SystemException()
          Constructs a SystemException instance with a default exception code.
SystemException(int code, java.lang.String message)
          Constructs a SystemException instance with a code and human-readable diagnostic message.
SystemException(int code, java.lang.Throwable thr)
          Constructs a SystemException instance with a code and Throwable object that may indicate further details of the cause of the exception.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ILLEGAL_ARGUMENT

public static int ILLEGAL_ARGUMENT
Code for 'illegal argument'. This exception code indicates that a method has been passed an illegal or inappropriate argument (for example a null Evidence).


CANNOT_PROCEED

public static int CANNOT_PROCEED
Code for 'Cannot proceed'. This exception code indicates that the implementation cannot continue with the processing of the current request due to an unexpected failure.


code

protected int code
Represents a machine-understandable code to refine/identify the cause of the exception.

Constructor Detail

SystemException

public SystemException()
Constructs a SystemException instance with a default exception code.


SystemException

public SystemException(int code,
                       java.lang.String message)
Constructs a SystemException instance with a code and human-readable diagnostic message.

Parameters:
code - This should be a constant from this exception class.
message - Diagnostic message intended for human reading.

SystemException

public SystemException(int code,
                       java.lang.Throwable thr)
Constructs a SystemException instance with a code and Throwable object that may indicate further details of the cause of the exception.

Parameters:
code - This should be a constant from this exception class.
thr - A Throwable object that may contain further details on the exception.