com.iparelan.util.validation
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.iparelan.util.validation.ValidationException
All Implemented Interfaces:
Serializable

@Generated(value="com.iparelan.jet.Jet",
           date="2008-07-28T11:54:01.124-0400")
public class ValidationException
extends RuntimeException

A validation exception.

See Also:
Serialized Form

Field Summary
private static String LINE_SEPARATOR
           
(package private) static long serialVersionUID
           
 
Constructor Summary
ValidationException(String msg)
          Creates a ValidationException.
ValidationException(String msg, Throwable cause)
          Creates a ValidationException.
ValidationException(Throwable cause)
          Creates a ValidationException.
 
Method Summary
private  String getLikelyErrorLocation()
          Produces a description of the likely location of the error that discards stack information associated with validation logic.
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

LINE_SEPARATOR

private static final String LINE_SEPARATOR
Constructor Detail

ValidationException

public ValidationException(String msg)
Creates a ValidationException.

Parameters:
msg - A message describing this error. May not be null.

ValidationException

public ValidationException(Throwable cause)
Creates a ValidationException.

Parameters:
cause - The error that caused this error. May not be null.

ValidationException

public ValidationException(String msg,
                           Throwable cause)
Creates a ValidationException.

Parameters:
msg - A message describing this error. May not be null.
cause - The error that caused this error. May not be null.
Method Detail

getLikelyErrorLocation

private String getLikelyErrorLocation()
Produces a description of the likely location of the error that discards stack information associated with validation logic.

Returns:
A description of the likely location of the error. Never null.

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2008 Iparelan Solutions, LLC. All rights reserved.