net.shibboleth.utilities.java.support.logic
Class ConstraintViolationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.shibboleth.utilities.java.support.logic.ConstraintViolationException
All Implemented Interfaces:
Serializable

public class ConstraintViolationException
extends RuntimeException

An exception that represents the violation of a constraint. For example, a method argument not being within the proper integer range or a return value being null. The astute observer might ask "Why not just use IllegalArgumentException?" The short answer is that that exception is really only meant to be thrown when checking method inputs and we wanted something that could really be used anywhere.

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          Serial version UID.
 
Constructor Summary
ConstraintViolationException(String message)
          Constructor.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

private static final long serialVersionUID
Serial version UID.

See Also:
Constant Field Values
Constructor Detail

ConstraintViolationException

public ConstraintViolationException(String message)
Constructor.

Parameters:
message - message describing the violated constraint


Copyright © 1999-2012. All Rights Reserved.