PHP Class EasyPost\Error

Inheritance: extends Exception
Afficher le fichier Open project: easypost/easypost-php

Méthodes publiques

Méthode 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 méthode

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

getHttpBody() public méthode

get the HTTP body
public getHttpBody ( ) : string
Résultat string

getHttpStatus() public méthode

get the HTTP status code
public getHttpStatus ( ) : integer
Résultat integer

prettyPrint() public méthode

print out the error
public prettyPrint ( ) : void
Résultat void