WonderPush PHP library
  • Namespace
  • Class
Navigation
  • Namespace
  • Class
Namespaces
  • WonderPush
    • Api
    • Errors
    • Net
    • Obj
    • Params
    • Util
Exceptions
  • Base
  • Network
  • Parsing
  • Server

Class Base

Base class for WonderPush errors.

The WonderPush API returns string error codes. This class exposes them as string, in addition to expose their parsed version with Exception::getCode().

Exception
┗ WonderPush\Errors\Base

Direct known subclasses

WonderPush\Errors\Network, WonderPush\Errors\Parsing, WonderPush\Errors\Server

Abstract
Namespace: WonderPush\Errors
Located at Errors/Base.php

Methods summary

public __construct( $message = '', $codeStr = '0', Exception $previous = null )

Overrides

Exception::__construct
public getCodeStr( void ) : string

The code as is has been returned by the API, as a string.

The code as is has been returned by the API, as a string.

Returns

string

Methods inherited from Exception

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

Constants summary

DEFAULT_MESSAGE : string

The default error message to use when none has been provided at construct time.

The default error message to use when none has been provided at construct time.

''
WonderPush PHP library API documentation generated by ApiGen