COAR Notify
 
Loading...
Searching...
No Matches
coarnotify\exceptions\COARNotifyServerError Class Reference
Inheritance diagram for coarnotify\exceptions\COARNotifyServerError:

Public Member Functions

 __construct (int $status, string $message)
 
 getStatus ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __construct()

coarnotify\exceptions\COARNotifyServerError::__construct ( int $status,
string $message )

Construct a new COARNotifyServerError with the given status code and message

Parameters
int$statusHTTP Status code to respond to the client with
string$messageMessage to send back to the client

Member Function Documentation

◆ getStatus()

coarnotify\exceptions\COARNotifyServerError::getStatus ( )

Get the HTTP status code for the error

Returns
int

The documentation for this class was generated from the following file: