Plex_ExceptionInterface
interface Plex_ExceptionInterface
Interface that defines the structure of Plex exceptions.
Methods
Makes sure the type of exception being thrown is valid for the module trying to throw the exception.
Every valid exception type should have an HTTP code with which it is associated. This method brings back said code for the given exception type.
Every valid exception type should have a message with which it is associated. This method brings back said message for the given exception type.
Module specific exceptions will have a defined set of exception types they are allowed to throw. This method will list the valid exception types for the instantiated exception class.
Details
at line 49
boolean
isValidType(string $type)
Makes sure the type of exception being thrown is valid for the module trying to throw the exception.
at line 60
integer
getCodeForType(string $type)
Every valid exception type should have an HTTP code with which it is associated. This method brings back said code for the given exception type.
at line 75
string
getMessageForType(string $type, mixed[] $params)
Every valid exception type should have a message with which it is associated. This method brings back said message for the given exception type.
at line 85
mixed[]
getValidTypes()
Module specific exceptions will have a defined set of exception types they are allowed to throw. This method will list the valid exception types for the instantiated exception class.