Skip to main content

Module error

Module error 

Source

Structs§

E_CANNOT_LOOKUP_ROUTE
Raised when attempting to generate a URL for a route name that does not exist.
E_CONFIG_PARSE_ERROR
Raised when a config value cannot be parsed into the expected type.
E_HTTP_EXCEPTION
Generic HTTP error. Can be instantiated with custom status and messages.
E_HTTP_REQUEST_ABORTED
Raised when Response::abort() is called inside a handler.
E_INSECURE_APP_KEY
Raised when APP_KEY length is less than 16 characters.
E_INVALID_ENV_VARIABLES
Raised when one or more environment variables fail validation.
E_METHOD_NOT_ALLOWED
Raised when a route exists but the HTTP method does not match.
E_MISSING_APP_KEY
Raised when APP_KEY is not defined in config.
E_MISSING_CONFIG_KEY
Raised when a required config key is missing.
E_MISSING_ROUTE_PARAM
Raised when a required route parameter is not present in the URL.
E_ROUTE_NOT_FOUND
Raised when the server receives a request for a non-existing route.
E_SESSION_NOT_MUTABLE
Raised when attempting to write to a session opened in read-only mode.
E_SESSION_NOT_READY
Raised when the session store is accessed before the session middleware has run.

Enums§

RokError

Traits§

RokException
Base trait for all typed exceptions in the rok ecosystem.