org.glite.ce.monitorapij.sensor
Class SensorException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.glite.ce.monitorapij.sensor.SensorException
All Implemented Interfaces:
java.io.Serializable

public class SensorException
extends java.lang.Exception

Exception raised by a Sensor.

Author:
Luigi Zangrando (zangrando@pd.infn.it)
See Also:
Serialized Form

Field Summary
static int ERROR
           
static int WARNING
           
 
Constructor Summary
SensorException()
          Constructor from superclass Exception.
SensorException(int exceptionID, java.lang.String msg)
          Constructor with a specified message String and exceptionID int.
SensorException(java.lang.String msg)
          Constructor with a specified message String.
 
Method Summary
 int getExceptionID()
          Get the exceptionID int.
 void setExceptionID(int exceptionID)
          Set the exceptionID int.
 
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

ERROR

public static final int ERROR
See Also:
Constant Field Values

WARNING

public static final int WARNING
See Also:
Constant Field Values
Constructor Detail

SensorException

public SensorException()
Constructor from superclass Exception.


SensorException

public SensorException(java.lang.String msg)
Constructor with a specified message String. The exceptionID is set to ERROR.

Parameters:
msg - The String specifying the message.

SensorException

public SensorException(int exceptionID,
                       java.lang.String msg)
Constructor with a specified message String and exceptionID int.

Parameters:
exceptionID - The int specifying the type of exception (ERROR = 0; WARNING = 1).
msg - The String specifying the message.
Method Detail

getExceptionID

public int getExceptionID()
Get the exceptionID int.

Returns:
Returns the int exceptionID.

setExceptionID

public void setExceptionID(int exceptionID)
Set the exceptionID int.

Parameters:
exceptionID - The exceptionID int to set (ERROR = 0; WARNING = 1).