gate.creole.ontology
Class InvalidValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by gate.util.GateException
              extended by gate.creole.ontology.InvalidValueException
All Implemented Interfaces:
Serializable

public class InvalidValueException
extends GateException

This exception should be thrown when a property value is not compatible with the property. e.g. boolean value for the integer datatype, invalid instance for an object property.

Author:
Niraj Aswani
See Also:
Serialized Form

Constructor Summary
InvalidValueException()
          Constructor
InvalidValueException(Exception e)
          Constructor - behaves like a wrapper to the provided exception
InvalidValueException(String s)
          Constructor
 
Method Summary
 void printStackTrace()
          Overriden so we can print the enclosed exception's stacktrace too.
 void printStackTrace(PrintStream s)
          Overriden so we can print the enclosed exception's stacktrace too.
 void printStackTrace(PrintWriter s)
          Overriden so we can print the enclosed exception's stacktrace too.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidValueException

public InvalidValueException()
Constructor


InvalidValueException

public InvalidValueException(String s)
Constructor

Parameters:
s - Message that should be printed along with the Exception trace

InvalidValueException

public InvalidValueException(Exception e)
Constructor - behaves like a wrapper to the provided exception

Parameters:
e -
Method Detail

printStackTrace

public void printStackTrace()
Overriden so we can print the enclosed exception's stacktrace too.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Overriden so we can print the enclosed exception's stacktrace too.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overriden so we can print the enclosed exception's stacktrace too.

Overrides:
printStackTrace in class Throwable