Documentation

HTTPException extends Exception
in package

Table of Contents

Methods

__construct()  : mixed
sendException()  : void
die sending json error response
toJSON()  : string
return json string of object with fields code and message

Methods

__construct()

public __construct(int $code, string $message) : mixed
Parameters
$code : int
$message : string

sendException()

die sending json error response

public static sendException([int $code = 500 ][, string $message = "" ]) : void
Parameters
$code : int = 500
$message : string = ""

toJSON()

return json string of object with fields code and message

public toJSON() : string
Return values
string

        
On this page

Search results