Exceptions: Difference between revisions

From Sunhill Framework Documentation
+ Storage exceptions
Some Property exceptions
Line 9: Line 9:
{{Exception info|Name=FilterException|Parent=SunhillException|Type=Error|Submodule=Filters|Description=An exception that is raised when something fails inside a filter}}
{{Exception info|Name=FilterException|Parent=SunhillException|Type=Error|Submodule=Filters|Description=An exception that is raised when something fails inside a filter}}
<!-- I -->
<!-- I -->
{{Exception info|Name=InvalidIndexException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=Raised when an array was called with a non defined index}}
{{Exception info|Name=InvalidNameException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=Is raised when a property is assigned an invalid name}}
{{Exception info|Name=InvalidNameException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=Is raised when a property is assigned an invalid name}}
{{Exception info|Name=InvalidOrderException|Parent=QueryException|Type=Error|Submodule=Queries|Description=Is raised when a a wrong order key was used or a wrong order direction was given}}
{{Exception info|Name=InvalidOrderException|Parent=QueryException|Type=Error|Submodule=Queries|Description=Is raised when a a wrong order key was used or a wrong order direction was given}}
Line 33: Line 34:
<!-- U -->
<!-- U -->
{{Exception info|Name=UnexpectedResultCountException|Parent=QueryException|Type=Error|Submodule=Queries|Description=Is raised when the number of result record are not expected (too many or to few)}}
{{Exception info|Name=UnexpectedResultCountException|Parent=QueryException|Type=Error|Submodule=Queries|Description=Is raised when the number of result record are not expected (too many or to few)}}
{{Exception info|Name=UninitializedValueException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=Raised when a property value is read that was not initialized}}
{{Exception info|Name=UnitNameAlreadyRegisteredException|Parent=PropertiesManagerException|Type=Error|Submodule=Properties|Description=Is raised when a unit is registered and the name is already given}}
{{Exception info|Name=UnitNameAlreadyRegisteredException|Parent=PropertiesManagerException|Type=Error|Submodule=Properties|Description=Is raised when a unit is registered and the name is already given}}
{{Exception info|Name=UnitNotRegisteredException|Parent=PropertiesManagerException|Type=Error|Submodule=Properties|Description=Is raised when a unit is requested that is not registered}}
{{Exception info|Name=UnitNotRegisteredException|Parent=PropertiesManagerException|Type=Error|Submodule=Properties|Description=Is raised when a unit is requested that is not registered}}

Revision as of 10:33, 12 October 2024

A list of all defined exceptions in the sunhill framework. For classes see here.

Name Parent Type Submodule Description
CheckException SunhillException Error Checks An exception that is raised when somethings fails inside a check
FieldNotAvaiableException StorageException Error Properties Is raised when a field was required that does not exist.
FilterException SunhillException Error Filters An exception that is raised when something fails inside a filter
InvalidIndexException PropertyException Error Properties Raised when an array was called with a non defined index
InvalidNameException PropertyException Error Properties Is raised when a property is assigned an invalid name
InvalidOrderException QueryException Error Queries Is raised when a a wrong order key was used or a wrong order direction was given
InvalidParameterException PropertyException Error Properties Is raised when a property is assigned an invalid parameter
ManagerException SunhillException Error Is raised when an error occurs inside a manager
NoResultException UnexpectedResultCountException Error Queries Is raised when first() is called and no result is returned
NotAPropertyException PropertyException Error Properties an exception that is raised when a function expects an property but something else was passed
PropertiesManagerException ManagerException Error Properties Is raised when an error occurs inside the properties manager
PropertyDoesntExistException PropertyException Error Properties Is raised when a property is called that does not exist
PropertyException SunhillException Error Properties A common exception for all property associated exceptions
PropertyKeyDoesntExistException PropertyException Error Properties Is raised when a getInfo() is called with a unknown key
PropertyNotSetException PropertyException Error Properties The excpetion is raised when an ElementBuilder method is called and no property is set
QueryException SunhillException Error Queries Base for exception that raised by a query
QueryNotWriteableException QueryException Error Queries Is raised when delete(), update() or insert() is called and query is marked as not writeable
StorageException SunhillException Error Properties A basic exception for all excpetions inside storages
SunhillException Exception Error A basic exception for all excpetions of the sunhill framework
TooManyResultsException UnexpectedResultCountException Error Queries Is raised when the number of result record is to high
UnexpectedResultCountException QueryException Error Queries Is raised when the number of result record are not expected (too many or to few)
UninitializedValueException PropertyException Error Properties Raised when a property value is read that was not initialized
UnitNameAlreadyRegisteredException PropertiesManagerException Error Properties Is raised when a unit is registered and the name is already given
UnitNotRegisteredException PropertiesManagerException Error Properties Is raised when a unit is requested that is not registered
WrongTypeException QueryException Error Properties Is raised when a non matching type was used