Public Member Functions | |
| __construct (int $status, string $message) | |
| getStatus () | |
An exception class for server errors in the COAR Notify server implementation.
The web layer of your server implementation should be able to intercept this from the COARNotifyServer->receive method and return the appropriate HTTP status code and message to the user in its standard way.
| coarnotify\exceptions\COARNotifyServerError::__construct | ( | int | $status, |
| string | $message ) |
Construct a new COARNotifyServerError with the given status code and message
| int | $status | HTTP Status code to respond to the client with |
| string | $message | Message to send back to the client |
| coarnotify\exceptions\COARNotifyServerError::getStatus | ( | ) |
Get the HTTP status code for the error