Exceptions: Difference between revisions
From Sunhill Framework Documentation
Some query exceptions |
+ Unit exceptions |
||
Line 11: | Line 11: | ||
{{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}} | ||
{{Exception info|Name=InvalidParameterException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=Is raised when a property is assigned an invalid parameter}} | {{Exception info|Name=InvalidParameterException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=Is raised when a property is assigned an invalid parameter}} | ||
<!-- M --> | |||
{{Exception info|Name=ManagerException|Parent=SunhillException|Type=Error|Submodule=|Description=Is raised when an error occurs inside a manager}} | |||
<!-- N --> | <!-- N --> | ||
{{Exception info|Name=NoResultException|Parent=UnexpectedResultCountException|Type=Error|Submodule=Queries|Description=Is raised when first() is called and no result is returned}} | {{Exception info|Name=NoResultException|Parent=UnexpectedResultCountException|Type=Error|Submodule=Queries|Description=Is raised when first() is called and no result is returned}} | ||
{{Exception info|Name=NotAPropertyException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=an exception that is raised when a function expects an property but something else was passed}} | {{Exception info|Name=NotAPropertyException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=an exception that is raised when a function expects an property but something else was passed}} | ||
<!-- P --> | <!-- P --> | ||
{{Exception info|Name=PropertiesManagerException|Parent=ManagerException|Type=Error|Submodule=Properties|Description=Is raised when an error occurs inside the properties manager}} | |||
{{Exception info|Name=PropertyDoesntExistException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=Is raised when a property is called that does not exist}} | {{Exception info|Name=PropertyDoesntExistException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=Is raised when a property is called that does not exist}} | ||
{{Exception info|Name=PropertyException|Parent=SunhillException|Type=Error|Submodule=Properties|Description=A common exception for all property associated exceptions}} | {{Exception info|Name=PropertyException|Parent=SunhillException|Type=Error|Submodule=Properties|Description=A common exception for all property associated exceptions}} | ||
Line 28: | Line 31: | ||
<!-- 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=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}} | |||
<!-- W --> | <!-- W --> | ||
{{Exception info|Name=WrongTypeException|Parent=QueryException|Type=Error|Submodule=Properties|Description=Is raised when a non matching type was used }} | {{Exception info|Name=WrongTypeException|Parent=QueryException|Type=Error|Submodule=Properties|Description=Is raised when a non matching type was used }} |
Revision as of 06:16, 9 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 |
FilterException | SunhillException | Error | Filters | An exception that is raised when something fails inside a filter |
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 |
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) |
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 |