Exceptions: Difference between revisions
From Sunhill Framework Documentation
+ QueryNotWriteableException |
Some query exceptions |
||
Line 9: | Line 9: | ||
<!-- I --> | <!-- I --> | ||
{{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=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}} | ||
<!-- 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=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 --> | ||
Line 22: | Line 24: | ||
<!-- S --> | <!-- S --> | ||
{{Exception info|Name=SunhillException|Parent=Exception|Type=Error|Submodule=|Description=A basic exception for all excpetions of the sunhill framework}} | {{Exception info|Name=SunhillException|Parent=Exception|Type=Error|Submodule=|Description=A basic exception for all excpetions of the sunhill framework}} | ||
<!-- T --> | |||
{{Exception info|Name=TooManyResultsException|Parent=UnexpectedResultCountException|Type=Error|Submodule=Queries|Description=Is raised when the number of result record is to high}} | |||
<!-- 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)}} | |||
<!-- 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 12:02, 8 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 |
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 |
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) |
WrongTypeException | QueryException | Error | Properties | Is raised when a non matching type was used |