cern.cmw
Class IOError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by cern.cmw.CmwException
              extended by cern.cmw.IOError
All Implemented Interfaces:
Serializable

public class IOError
extends CmwException

Indicates an error in the low level I/O software/firmware/hardware used in the device servers.

Each IOError provides several kinds of information:

See Also:
Data, Serialized Form

Constructor Summary
IOError(String errorCategory, int errorCode, String message)
          Constructs an IOError exception; details defaults to null.
IOError(String errorCategory, int errorCode, String message, Data details)
          Constructs a fully-specified IOError exception.
 
Method Summary
 String getCategory()
          Returns the category string for this exception.
 int getCode()
          Returns the error code for this exception.
 Data getDetails()
          Returns additional error information for this exception, packed into a Data container, or null if the details are not available.
 String toString()
          Returns a string representation of this IOError.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IOError

public IOError(String errorCategory,
               int errorCode,
               String message,
               Data details)
Constructs a fully-specified IOError exception.


IOError

public IOError(String errorCategory,
               int errorCode,
               String message)
Constructs an IOError exception; details defaults to null.

Method Detail

getCategory

public String getCategory()
Returns the category string for this exception.


getCode

public int getCode()
Returns the error code for this exception.


getDetails

public Data getDetails()
Returns additional error information for this exception, packed into a Data container, or null if the details are not available.


toString

public String toString()
Returns a string representation of this IOError. The string format is:
 cern.cmw.IOError: ["category" - "code"] "message" 
 
Note that details data is not included in the string: you can use Data.toString() to stringify this field separately.

Overrides:
toString in class Throwable


Copyright © 2007 CERN. All Rights Reserved.