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

Field Summary
private static boolean DEBUG
          Debug flag
(package private)  Exception exception
          Internal object of exception, for which the instance behaves like a wrapper
private static long serialVersionUID
           
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

DEBUG

private static final boolean DEBUG
Debug flag

See Also:
Constant Field Values

exception

Exception exception
Internal object of exception, for which the instance behaves like a wrapper

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