ConstraintException
Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, java.lang.IllegalStateException
public final class ConstraintException extends IllegalStateException
Represents the exception that is thrown when attempting an action that violates a constraint.
Constructors
Constructor | Description |
---|---|
ConstraintException(String s) | Initializes a new instance of the ConstraintException class with the specified string. |
ConstraintException(String s)
public ConstraintException(String s)
Initializes a new instance of the ConstraintException class with the specified string.
Parameters:
Parameter | Type | Description |
---|---|---|
s | java.lang.String | The string to display when the exception is thrown. |