Package org.xcsp.parser
Class WrongTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.xcsp.parser.WrongTypeException
-
- All Implemented Interfaces:
Serializable
public class WrongTypeException extends RuntimeException
An exception thrown when a constraint parameter has not the expected type. This exception was created after the first version of the parser was written. It extendsRuntimeExceptionto minimize the changes to be made elsewhere in the code; a refactoring may be useful here.- Author:
- Emmanuel Lonca - lonca@cril.fr
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WrongTypeException(String reason)Builds a newWrongTypeExceptiongiven the reason it was thrown.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
WrongTypeException
public WrongTypeException(String reason)
Builds a newWrongTypeExceptiongiven the reason it was thrown.- Parameters:
reason- the reason
-
-