Class HttpApiV2Exception

Class HttpApiException

This exception class is used for handling exceptions that concern the API execution. The default exception code is set to 500 (Internal Server Error) and must explicitly set to any other standard HTTP status code in order to be contained in the response headers.

Exception implements Throwable
HttpApiV2Exception

Methods summary

public __construct( string $message = '', integer $code = 500, Exception $previous = null )

Constructor with default code argument value set to 500 (Internal server error).

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Properties summary

Properties inherited from Exception

$code, $file, $line, $message