Package Modeling :: Module Validation :: Class ValidationException
[show private | hide private]
[frames | no frames]

Class ValidationException

Exception --+
            |
           ValidationException


Raised by validation methods validateValue() on Entity, Attributes and Relationships when they fail
Method Summary
  __init__(self, aKey, 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.
  args(self)
  concatenateWith(self, aValidationError)
Concatenates the supplied Validation.ValidationException to the current one.
  errorKeys(self)
Returns keys for exception's dictionary
  errors(self)
Returns the error dictionary
  errorsDict(self)
Returns the error dictionary
  finalize(self)
Finalize a validation process.
  keysForErrorType(self, anErrorType)
Returns the keys for which that error was aggregated
    Inherited from Exception
  __getitem__(...)

Class Variable Summary
classobj __implements__ = Modeling.interfaces.Validation.ValidationExceptionInterface

Method Details

__init__(self, aKey=None, anErrorType='')
(Constructor)

Initializes the exception, possibly with supplied errorType and key
Overrides:
exceptions.Exception.__init__

__call__(self)
(Call operator)

Returns the receiver's dictionary

__str__(self)
(Informal representation operator)

Returns a string representation of the exception
Overrides:
exceptions.Exception.__str__

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.

concatenateWith(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.

errorKeys(self)

Returns keys for exception's dictionary

errors(self)

Returns the error 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

Generated by Epydoc 2.1 on Sat Mar 4 13:36:21 2006 http://epydoc.sf.net