MyAllocator PMS PHP SDK
  • Namespace
  • Class
  • Tree

Namespaces

  • MyAllocator
    • phpsdk
      • src
        • Api
        • Exception
        • Object
        • Util
  • PHP

Exceptions

  • ApiAuthenticationException
  • ApiConnectionException
  • ApiException
  • InvalidRequestException
  • MaException

Class MaException

The MyAllocator base exception class.

Exception
Extended by MyAllocator\phpsdk\src\Exception\MaException

Direct known subclasses

MyAllocator\phpsdk\src\Exception\ApiAuthenticationException, MyAllocator\phpsdk\src\Exception\ApiConnectionException, MyAllocator\phpsdk\src\Exception\ApiException, MyAllocator\phpsdk\src\Exception\InvalidRequestException

Namespace: MyAllocator\phpsdk\src\Exception
Located at Exception/MaException.php

Methods summary

public
# __construct( string $msg, array $state = null )

The constructor may set request/response parameters.

The constructor may set request/response parameters.

Parameters

$msg
The exception description.
$state
$args The request/response parameters.

Overrides

Exception::__construct
public
# getState( )

Get the state of an exception

Get the state of an exception

public
# getHttpStatus( )

Get the http status code of an exception.

Get the http status code of an exception.

public
# getHttpBody( )

Get the http body of an exception.

Get the http body of an exception.

public
# getJsonBody( )

Get the http body as json of an exception.

Get the http body as json of an exception.

Methods inherited from Exception

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

Magic methods summary

Properties summary

protected array $state

State data before the exception.

State data before the exception.

# null

Properties inherited from Exception

$code, $file, $line, $message

MyAllocator PMS PHP SDK API documentation generated by ApiGen