Do not use
wcf\system\exception\SystemException anymore, use specific exception classes!
The following table contains a list of custom exceptions that are commonly used.
All of the exceptions are found in the
|Class name||(examples) when to use|
||access to a page that belongs to a non-existing object, executing actions on specific non-existing objects (is shown as http 404 error to the user)|
||a class does not implement an expected interface|
||5.4+ API method support generic objects but specific implementation requires objects of specific (sub)class and different object is given|
||object type is not of an expected object type definition|
||given security token does not match the security token of the active user's session|
||a class does not extend an expected (parent) class|
||page access without permission, action execution without permission (is shown as http 403 error to the user)|
||user input does not pass validation|
Last update: 2021-01-12