okapi.tools
Class OkapiToolException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by okapi.tools.OkapiToolException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
OkapiToolFatalException

public class OkapiToolException
extends java.lang.Exception

Class OkapiToolException provides an exception for use in the tools which contains an xml error message. Most OkapiToolExceptions will be OkapiToolFatalExceptions, but we may find it useful to have a distinction.

Version:
$Revision: 31044 $, $Date: 2008-09-02 17:08:01 -0400 (Tue, 02 Sep 2008) $
Author:
MIT Stellar team
See Also:
Serialized Form

Constructor Summary
OkapiToolException(OkapiToolErrorList errors)
          Creates a new ToolException with error.toString() as the error message.
OkapiToolException(java.lang.String s)
          Creates a new ToolException with s as the error message.
 
Method Summary
 java.lang.String toString()
          Returns the xml error message associated with this exception
 
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

OkapiToolException

public OkapiToolException(java.lang.String s)
Creates a new ToolException with s as the error message. S should be well formed xml.


OkapiToolException

public OkapiToolException(OkapiToolErrorList errors)
Creates a new ToolException with error.toString() as the error message.

Method Detail

toString

public java.lang.String toString()
Returns the xml error message associated with this exception

Overrides:
toString in class java.lang.Throwable


Copyright ? 2001-2009 MIT. All Rights Reserved.