PHP Class EasyPost\Error

Inheritance: extends Exception
Datei anzeigen Open project: easypost/easypost-php

Public Methods

Method Description
__construct ( string $message = null, integer $httpStatus = null, string $httpBody = null ) constructor
getHttpBody ( ) : string get the HTTP body
getHttpStatus ( ) : integer get the HTTP status code
prettyPrint ( ) : void print out the error

Method Details

__construct() public method

constructor
public __construct ( string $message = null, integer $httpStatus = null, string $httpBody = null )
$message string
$httpStatus integer
$httpBody string

getHttpBody() public method

get the HTTP body
public getHttpBody ( ) : string
return string

getHttpStatus() public method

get the HTTP status code
public getHttpStatus ( ) : integer
return integer

prettyPrint() public method

print out the error
public prettyPrint ( ) : void
return void