Class BatchRequestError
BatchRequestError
A BatchRequestError object consists of zero or more request and
response errors.
-
Exception
-
LeanCloud\CloudException
-
LeanCloud\BatchRequestError
Methods summary
public
|
|
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
|
public
array
|
#
getAll( )
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
|
|
Methods inherited from Exception
__wakeup(),
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
|
Properties inherited from Exception
$code,
$file,
$line,
$message
|