Class CharacteristicException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- de.cuioss.test.generator.internal.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
-
-
Constructor Summary
Constructors Constructor Description CharacteristicException(String message, Throwable cause, Characteristic<?> charateristic)CharacteristicException(String message, Throwable cause, Characteristic<?> charateristic, Object instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Characteristic<?>getCharateristic()ObjectgetInstance()Instance causing the characteristic violation.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
getInstance
public Object getInstance()
Instance causing the characteristic violation.- Returns:
- the violating instance
-
getCharateristic
public Characteristic<?> getCharateristic()
-
-