case classValidationException(message: String, rule: ValidationRule, args: Seq[Any], cause: Option[Throwable] = None) extends Exception with Product with Serializable
Base class for all exceptions which may be thrown by validation rules.
Instances of this class are used as messages to communicate soft-fork information,
from the context where the soft-fork condition is detected (such as in ValidationRules),
up the stack to the point where it is clear how to handle it.
Some messages of this kind are not handled, in which case a new Exception is thrown
and this instance should be attached as a cause parameter.
This exception should typically always come with Some(cause). As result, stack trace is not
filled in when this instance is create. The cause parameter should be examined for the source
of the exception.
Linear Supertypes
Serializable, Product, Equals, Exception, Throwable, Serializable, AnyRef, Any
Base class for all exceptions which may be thrown by validation rules. Instances of this class are used as messages to communicate soft-fork information, from the context where the soft-fork condition is detected (such as in ValidationRules), up the stack to the point where it is clear how to handle it. Some messages of this kind are not handled, in which case a new Exception is thrown and this instance should be attached as a
cause
parameter.This exception should typically always come with Some(cause). As result, stack trace is not filled in when this instance is create. The
cause
parameter should be examined for the source of the exception.