childcount.exceptions

Standard exceptions used in many CCForm and CCComand definitions. It is best to use these exceptions in your own code so that users get consistent error messages.

exception childcount.exceptions.AmbiguousAge[source]
exception childcount.exceptions.BadValue(message=u'FAILED. Bad value. ')[source]
exception childcount.exceptions.CCException[source]

General exception extended by all other custom exceptions.

message

The error message to raise with the exception.

exception childcount.exceptions.Inapplicable(message=u'FAILED. Not applicable.')[source]
exception childcount.exceptions.InvalidAge[source]
exception childcount.exceptions.InvalidDOB[source]
exception childcount.exceptions.NotRegistered(message=u'Error: You must first be registered.')[source]
exception childcount.exceptions.ParseError(message=u'FAILED. Unable to understand message. ')[source]

Previous topic

childcount.dashboard_sections

Next topic

childcount.fields

This Page