Home | Trees | Indices | Help |
|
---|
|
object --+ | validator.IValidator --+ | AbstractValidator
Abstract IValidator implementation that provides a basic IValidator implementation except the isValid method. Sub-classes need to implement the isValid method.
To include the value that failed validation in the exception message you can use "{0}" in the error message. This will be replaced with the failed value (converted to string using __str__) or "null" if the value is None.
Version: 1.1.2
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
Constructs a validator with the given error message.
|
Checks the given value against this validator. If the value is valid the method does nothing. If the value is invalid, an InvalidValueException is thrown.
|
Returns the message to be included in the exception in case the value does not validate.
|
Sets the message to be included in the exception in case the value does not validate. The exception message is typically shown to the end user.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jul 6 13:40:51 2013 | http://epydoc.sourceforge.net |