Exceptions: Difference between revisions
From Sunhill Framework Documentation
Some Property exceptions |
Standarized description and added InvalidIDException |
||
Line 2: | Line 2: | ||
{|class="wikitable sortable" style="width: 100%" | {|class="wikitable sortable" style="width: 100%" | ||
!Name!!Parent!!Type!!Submodule!!class="unsortable"| | !Name!!Parent!!Type!!Submodule!!class="unsortable"| Exception is raises when ... | ||
<!-- C --> | <!-- C --> | ||
{{Exception info|Name=CheckException|Parent=SunhillException|Type=Error|Submodule=Checks|Description= | {{Exception info|Name=CheckException|Parent=SunhillException|Type=Error|Submodule=Checks|Description=... something fails inside a check}} | ||
<!-- F --> | <!-- F --> | ||
{{Exception info|Name=FieldNotAvaiableException|Parent=StorageException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=FieldNotAvaiableException|Parent=StorageException|Type=Error|Submodule=Properties|Description=... a field was required that does not exist.}} | ||
{{Exception info|Name=FilterException|Parent=SunhillException|Type=Error|Submodule=Filters|Description= | {{Exception info|Name=FilterException|Parent=SunhillException|Type=Error|Submodule=Filters|Description=... something fails inside a filter}} | ||
<!-- I --> | <!-- I --> | ||
{{Exception info|Name=InvalidIndexException|Parent=PropertyException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=InvalidIDException|Parent=StorageException|Type=Error|Submodule=Properties|Description=... load() was called with an invalid id}} | ||
{{Exception info|Name=InvalidNameException|Parent=PropertyException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=InvalidIndexException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=... an array was called with a non defined index}} | ||
{{Exception info|Name=InvalidOrderException|Parent=QueryException|Type=Error|Submodule=Queries|Description= | {{Exception info|Name=InvalidNameException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=... a property is assigned an invalid name}} | ||
{{Exception info|Name=InvalidParameterException|Parent=PropertyException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=InvalidOrderException|Parent=QueryException|Type=Error|Submodule=Queries|Description=... 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=... a property is assigned an invalid parameter}} | |||
<!-- M --> | <!-- M --> | ||
{{Exception info|Name=ManagerException|Parent=SunhillException|Type=Error|Submodule=|Description= | {{Exception info|Name=ManagerException|Parent=SunhillException|Type=Error|Submodule=|Description=... an error occurs inside a manager}} | ||
<!-- N --> | <!-- N --> | ||
{{Exception info|Name=NoResultException|Parent=UnexpectedResultCountException|Type=Error|Submodule=Queries|Description= | {{Exception info|Name=NoResultException|Parent=UnexpectedResultCountException|Type=Error|Submodule=Queries|Description=... first() is called and no result is returned}} | ||
{{Exception info|Name=NotAPropertyException|Parent=PropertyException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=NotAPropertyException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=... a function expects an property but something else was passed}} | ||
<!-- P --> | <!-- P --> | ||
{{Exception info|Name=PropertiesManagerException|Parent=ManagerException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=PropertiesManagerException|Parent=ManagerException|Type=Error|Submodule=Properties|Description=... an error occurs inside the properties manager}} | ||
{{Exception info|Name=PropertyDoesntExistException|Parent=PropertyException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=PropertyDoesntExistException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=... a property is called that does not exist}} | ||
{{Exception info|Name=PropertyException|Parent=SunhillException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=PropertyException|Parent=SunhillException|Type=Error|Submodule=Properties|Description=... an exception occurs inside a property (common ancestor)}} | ||
{{Exception info|Name=PropertyKeyDoesntExistException|Parent=PropertyException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=PropertyKeyDoesntExistException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=... a getInfo() is called with a unknown key}} | ||
{{Exception info|Name=PropertyNotSetException|Parent=PropertyException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=PropertyNotSetException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=... an ElementBuilder method is called and no property is set}} | ||
<!-- Q --> | <!-- Q --> | ||
{{Exception info|Name=QueryException|Parent=SunhillException|Type=Error|Submodule=Queries|Description= | {{Exception info|Name=QueryException|Parent=SunhillException|Type=Error|Submodule=Queries|Description=... something goes wrong in a query (common ancestor)}} | ||
{{Exception info|Name=QueryNotWriteableException|Parent=QueryException|Type=Error|Submodule=Queries|Description= | {{Exception info|Name=QueryNotWriteableException|Parent=QueryException|Type=Error|Submodule=Queries|Description=... delete(), update() or insert() is called and query is marked as not writeable}} | ||
<!-- S --> | <!-- S --> | ||
{{Exception info|Name=StorageException|Parent=SunhillException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=StorageException|Parent=SunhillException|Type=Error|Submodule=Properties|Description=... excpetion occurs inside a storage (common ancestor)}} | ||
{{Exception info|Name=SunhillException|Parent=Exception|Type=Error|Submodule=|Description= | {{Exception info|Name=SunhillException|Parent=Exception|Type=Error|Submodule=|Description=... exception occurs inside the framework (common ancestor)}} | ||
<!-- T --> | <!-- T --> | ||
{{Exception info|Name=TooManyResultsException|Parent=UnexpectedResultCountException|Type=Error|Submodule=Queries|Description= | {{Exception info|Name=TooManyResultsException|Parent=UnexpectedResultCountException|Type=Error|Submodule=Queries|Description=... the number of result record is to high}} | ||
<!-- U --> | <!-- U --> | ||
{{Exception info|Name=UnexpectedResultCountException|Parent=QueryException|Type=Error|Submodule=Queries|Description= | {{Exception info|Name=UnexpectedResultCountException|Parent=QueryException|Type=Error|Submodule=Queries|Description=... the number of result record are not expected (too many or to few)}} | ||
{{Exception info|Name=UninitializedValueException|Parent=PropertyException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=UninitializedValueException|Parent=PropertyException|Type=Error|Submodule=Properties|Description=... a property value is read that was not initialized}} | ||
{{Exception info|Name=UnitNameAlreadyRegisteredException|Parent=PropertiesManagerException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=UnitNameAlreadyRegisteredException|Parent=PropertiesManagerException|Type=Error|Submodule=Properties|Description=... a unit is registered and the name is already given}} | ||
{{Exception info|Name=UnitNotRegisteredException|Parent=PropertiesManagerException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=UnitNotRegisteredException|Parent=PropertiesManagerException|Type=Error|Submodule=Properties|Description=... a unit is requested that is not registered}} | ||
<!-- W --> | <!-- W --> | ||
{{Exception info|Name=WrongTypeException|Parent=QueryException|Type=Error|Submodule=Properties|Description= | {{Exception info|Name=WrongTypeException|Parent=QueryException|Type=Error|Submodule=Properties|Description=... a non matching type was used }} | ||
|} | |} | ||
[[Category:Exceptions]] | [[Category:Exceptions]] |
Revision as of 13:52, 12 October 2024
A list of all defined exceptions in the sunhill framework. For classes see here.
Name | Parent | Type | Submodule | Exception is raises when ... |
---|---|---|---|---|
CheckException | SunhillException | Error | Checks | ... something fails inside a check |
FieldNotAvaiableException | StorageException | Error | Properties | ... a field was required that does not exist. |
FilterException | SunhillException | Error | Filters | ... something fails inside a filter |
InvalidIDException | StorageException | Error | Properties | ... load() was called with an invalid id |
InvalidIndexException | PropertyException | Error | Properties | ... an array was called with a non defined index |
InvalidNameException | PropertyException | Error | Properties | ... a property is assigned an invalid name |
InvalidOrderException | QueryException | Error | Queries | ... a a wrong order key was used or a wrong order direction was given |
InvalidParameterException | PropertyException | Error | Properties | ... a property is assigned an invalid parameter |
ManagerException | SunhillException | Error | ... an error occurs inside a manager | |
NoResultException | UnexpectedResultCountException | Error | Queries | ... first() is called and no result is returned |
NotAPropertyException | PropertyException | Error | Properties | ... a function expects an property but something else was passed |
PropertiesManagerException | ManagerException | Error | Properties | ... an error occurs inside the properties manager |
PropertyDoesntExistException | PropertyException | Error | Properties | ... a property is called that does not exist |
PropertyException | SunhillException | Error | Properties | ... an exception occurs inside a property (common ancestor) |
PropertyKeyDoesntExistException | PropertyException | Error | Properties | ... a getInfo() is called with a unknown key |
PropertyNotSetException | PropertyException | Error | Properties | ... an ElementBuilder method is called and no property is set |
QueryException | SunhillException | Error | Queries | ... something goes wrong in a query (common ancestor) |
QueryNotWriteableException | QueryException | Error | Queries | ... delete(), update() or insert() is called and query is marked as not writeable |
StorageException | SunhillException | Error | Properties | ... excpetion occurs inside a storage (common ancestor) |
SunhillException | Exception | Error | ... exception occurs inside the framework (common ancestor) | |
TooManyResultsException | UnexpectedResultCountException | Error | Queries | ... the number of result record is to high |
UnexpectedResultCountException | QueryException | Error | Queries | ... the number of result record are not expected (too many or to few) |
UninitializedValueException | PropertyException | Error | Properties | ... a property value is read that was not initialized |
UnitNameAlreadyRegisteredException | PropertiesManagerException | Error | Properties | ... a unit is registered and the name is already given |
UnitNotRegisteredException | PropertiesManagerException | Error | Properties | ... a unit is requested that is not registered |
WrongTypeException | QueryException | Error | Properties | ... a non matching type was used |