Enhydra 5.1 API

org.enhydra.tool.codegen
Class ValidationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.enhydra.tool.common.ToolException
                    |
                    +--org.enhydra.tool.codegen.GeneratorException
                          |
                          +--org.enhydra.tool.codegen.ValidationException
All Implemented Interfaces:
java.io.Serializable

public class ValidationException
extends GeneratorException

The ValidationException can be thrown when validating option values.

See Also:
Serialized Form

Constructor Summary
ValidationException(java.lang.String message)
          Create a GeneratorException with a specified error message.
ValidationException(java.lang.Throwable chain, java.lang.String message)
          Create a ValidationException linked to a parent exception.
 
Method Summary
 java.lang.String getValidationMessage()
          Get the message of this exception without any other chain member messages.
 
Methods inherited from class org.enhydra.tool.common.ToolException
getMessage, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(java.lang.String message)
Create a GeneratorException with a specified error message.

Parameters:
message - Message providing information on the nature of the exception.

ValidationException

public ValidationException(java.lang.Throwable chain,
                           java.lang.String message)
Create a ValidationException linked to a parent exception.

Parameters:
chain - Parent exception to include in stack trace.
message - Message providing information on the nature of the exception.
Method Detail

getValidationMessage

public java.lang.String getValidationMessage()
Get the message of this exception without any other chain member messages.

Returns:
A single exception message.

Enhydra 5.1 API