Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 2.32 KB

File metadata and controls

41 lines (32 loc) · 2.32 KB

Exceptions provided by the library

These classes you can directly use or define your classes on the basis of their.

All intermediate errors (which have children) are interfaces.

All classes are inherited from Error and from Runtime or Logic (indicated in parentheses).

  • NotFound - an element of a container is not found
  • InvalidConfig (logic) - a configuration has invalid format
  • RequiresOverride (logic) - a method requires override
  • Init
    • AlreadyInited (logic) - attempt to initialize an already initialized object
    • NotInited (logic) - attempt to use not initialized object
  • Forbidden - an action is forbidden
  • ActionNotAllowed - this action is not allowed for this object
  • InvalidValue - wrong format of a values
  • DependencyError - an error associated with dependency (extension, composer package, plugin)
  • InvalidFormat - invalid format of some string

Constructors and methods

Constructors of all these classes take as last arguments (optional)

  • previous (Exception) - the previous exception used for the exception chaining
  • thrower (object|string) - see truncate backtrace

All other arguments also are optional.

Such arguments as container or service can be a string (the name of service) or an object (itself service).