Module de.cuioss.test.generator
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
Indicates that a characteristic specification was not true for a given
instance.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCharacteristicException(String message, Throwable cause, Characteristic<?> charateristic) CharacteristicException(String message, Throwable cause, Characteristic<?> charateristic, Object instance) -
Method Summary
Modifier and TypeMethodDescriptionInstance 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 Details
-
CharacteristicException
- 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 Details
-
getInstance
Instance causing the characteristic violation.- Returns:
- the violating instance
-