Builder
class Builder
Class responsible for building meaningful exceptions. For HTTP problems, it produces a {see HttpError} exception, and supplies a error message with reasonable defaults. For user input problems, it produces a {see UserInputError} exception. For both, the problem is described, a potential solution is offered and a link to further information is included.
Methods
                                __construct
                                (ClientInterface $client = null)
                                                                
                            
                                                            No description
                                str
                                (MessageInterface $message)
                                 :                                 string
                            
                                                            No description
                                httpError
                                (RequestInterface $request, ResponseInterface $response)
                                 :                                 BadResponseError
                            
                                                            Helper method responsible for constructing and returning {see BadResponseError} exceptions.
                                userInputError
                                (string $expectedType, mixed $userValue, string $furtherLink = null)
                                 :                                 UserInputError
                            
                                                            Helper method responsible for constructing and returning {see UserInputError} exceptions.
Details
                
                
                                                                            httpError(RequestInterface $request, ResponseInterface $response)
            
            Helper method responsible for constructing and returning {see BadResponseError} exceptions.