forked from parse-community/parse-php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParseAggregateException.php
More file actions
45 lines (41 loc) · 985 Bytes
/
Copy pathParseAggregateException.php
File metadata and controls
45 lines (41 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* Class ParseAggregateException | Parse/ParseAggregateException.php
*/
namespace Parse;
/**
* Class ParseAggregateException - Multiple error condition.
*
* @author Fosco Marotto <fjm@fb.com>
* @package Parse
*/
class ParseAggregateException extends ParseException
{
/**
* Collection of error values
*
* @var array
*/
private $errors;
/**
* Constructs a Parse\ParseAggregateException.
*
* @param string $message Message for the Exception.
* @param array $errors Collection of error values.
* @param \Exception $previous Previous exception.
*/
public function __construct($message, $errors = [], $previous = null)
{
parent::__construct($message, 600, $previous);
$this->errors = $errors;
}
/**
* Return the aggregated errors that were thrown.
*
* @return array
*/
public function getErrors()
{
return $this->errors;
}
}