Overview

Namespaces

  • LeanCloud
    • Engine
    • Operation
    • Storage
    • Uploader

Classes

  • ACL
  • AppRouter
  • Bytes
  • Client
  • File
  • GeoPoint
  • LeanObject
  • MIMEType
  • Push
  • Query
  • Region
  • Relation
  • Role
  • RouteCache
  • SaveOption
  • SMS
  • User

Exceptions

  • BatchRequestError
  • CloudException
  • Overview
  • Namespace
  • Class

Class BatchRequestError

BatchRequestError

A BatchRequestError object consists of zero or more request and response errors.

Exception
Extended by LeanCloud\CloudException
Extended by LeanCloud\BatchRequestError
Namespace: LeanCloud
Located at LeanCloud/BatchRequestError.php
Methods summary
public
# __construct( $message = "", $code = 1 )

Overrides

LeanCloud\CloudException::__construct()
public LeanCloud\BatchRequestError
# add( $request, $response )

Add failed request and its error response

Add failed request and its error response

Both request and response are expected to be array. The response array must contain an error message, while the request should contain method and path.

Returns

LeanCloud\BatchRequestError
public array
# getAll( )

Get all error response

Get all error response

Returns

array
public array|null
# getFirst( )

Get first error response as map

Get first error response as map

Returns associative array of following format:

{"code": 101, "error": "error message", "request": {...}}

Returns

array|null
public boolean
# isEmpty( )

Contains error response or not

Contains error response or not

Returns

boolean
public
# __toString( )

Overrides

LeanCloud\CloudException::__toString()
Methods inherited from Exception
__wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties inherited from LeanCloud\CloudException
$method, $status, $url
Properties inherited from Exception
$code, $file, $line, $message
API documentation generated by ApiGen