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

Class ValidationExceptionInterface

Base --+
       |
      ValidationExceptionInterface


Raised by validation methods 'validateValue()' on 'Entity', 'Attributes' and 'Relationships' when they fail

Inherits from: 'Exception'.


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)
  errorKeys(self)
Returns keys for exception's 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

Method Details

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

Initializes the exception, possibly with supplied errorType and key

__call__(self)
(Call operator)

Returns the receiver's dictionary

__str__(self)
(Informal representation operator)

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

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