net.java.quickcheck
Class CharacteristicException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.java.quickcheck.CharacteristicException
- All Implemented Interfaces:
- Serializable
public class CharacteristicException
- extends RuntimeException
Indicates that a characteristic specification was not true for a given
instance.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
CharacteristicException
public CharacteristicException(String message,
Throwable cause,
Characteristic<?> charateristic)
- Parameters:
message
- error messagecause
- causing exception thrown by characteristiccharateristic
- characteristic violated
CharacteristicException
public CharacteristicException(String message,
Throwable cause,
Characteristic<?> charateristic,
Object instance)
- Parameters:
message
- error messagecause
- causing exception thrown by characteristicinstance
- violating the specified characteristiccharateristic
- characteristic violated
getInstance
public Object getInstance()
- Instance causing the characteristic violation.
- Returns:
- the violating instance
getCharateristic
public Characteristic<?> getCharateristic()
Copyright © 2011. All Rights Reserved.