Package Modeling :: Module ModelValidation :: Class ModelValidationException
[show private | hide private]
[frames | no frames]

Class ModelValidationException

Exception --+
            |
           ModelValidationException


Method Summary
  __init__(self, object, level, msg, ignore_levels)
Initializes the exception, possibly with supplied object, level and msg
  __call__(self)
Returns the receiver's dictionary
  __str__(self)
Returns a string representation of the exception
  aggregateError(self, object, level, msgs)
Adds the supplied error type in the exception's dictionary
  aggregateException(self, aModelValidationError)
Concatenates the supplied ModelValidationException to the current one.
  errorObjects(self)
Returns the list of objects for which errors were detected
  errors(self)
Returns the error dictionary
  errorsDict(self)
Returns the error dictionary
  finalize(self)
Finalize a validation process.
  has_errors(self, for_level)
  levels_of_errors(self)
    Inherited from Exception
  __getitem__(...)

Method Details

__init__(self, object=None, level=None, msg=None, ignore_levels=None)
(Constructor)

Initializes the exception, possibly with supplied object, level and msg

Parameters:

object -- the object causing the error

level -- valid levels are DEBUG, INFO, WARNING, ERROR, NOT_SUPPORTED,
defined by the module

msg -- informational message

ignore_levels -- list of level to ignore. Default is (DEBUG,)

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__

aggregateError(self, object, level, msgs)

Adds the supplied error type in the exception's dictionary

aggregateException(self, aModelValidationError)

Concatenates the supplied ModelValidationException to the current one.

errorObjects(self)

Returns the list of objects for which errors were detected

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

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