Home | Trees | Index | Help |
|
---|
Package Modeling :: Package interfaces :: Module Validation :: Class ValidationExceptionInterface |
|
Base
--+
|
ValidationExceptionInterface
Raised by validation methods 'validateValue()' on 'Entity', 'Attributes' and 'Relationships' when they fail
Inherits from: 'Exception'.
Method Summary | |
---|---|
Initializes the exception, possibly with supplied errorType and key | |
Returns the receiver's dictionary | |
Returns a string representation of the exception | |
Adds the supplied error type in the exception's dictionary, using the provided key | |
Adds the supplied errors types in the exception's dictionary, using the provided key | |
Adds the supplied error type in the exception's dictionary, using the provided key | |
Adds the supplied errors types in the exception's dictionary, using the provided key | |
Concatenates the supplied Validation.ValidationException to the current one. | |
| |
Returns keys for exception's dictionary | |
Returns the error dictionary | |
Finalize a validation process. | |
Returns the keys for which that error was aggregated |
Method Details |
---|
__init__(self,
aKey=None,
anErrorType='')
Initializes the exception, possibly with supplied errorType and key |
__call__(self)
Returns the receiver's dictionary |
__str__(self)
Returns a string representation of the exception |
addErrorForKey(self, anErrorType, aKey)Adds the supplied error type in the exception's dictionary, using the provided key |
addErrorsForKey(self, listOfErrorTypes, aKey)Adds the supplied errors types in the exception's dictionary, using the provided key |
aggregateError(self, anErrorType, aKey)Adds the supplied error type in the exception's dictionary, using the provided key |
aggregateErrors(self, listOfErrorTypes, aKey)Adds the supplied errors types in the exception's dictionary, using the provided key |
aggregateException(self, aValidationError)Concatenates the supplied Validation.ValidationException to the current one. For convenience, parameter can be either a Validation.ValidationException object, or a dictionary as provided by Validation.ValidationException errorsDict. |
args(self) |
errorKeys(self)Returns keys for exception's dictionary |
errorsDict(self)Returns the error dictionary |
finalize(self)Finalize a validation process. If the exception has a non-empty errorsDict it raises, otherwise simply return |
keysForErrorType(self, anErrorType)Returns the keys for which that error was aggregated |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:26 2006 | http://epydoc.sf.net |