Skip to content

Commit 79cef0d

Browse files
committed
Updated SqlServicesException.
1 parent ce305eb commit 79cef0d

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

Exceptions/SqlServicesException.php

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,23 @@
22

33
namespace NGFramer\NGFramerPHPSQLServices\Exceptions;
44

5+
use NGFramer\NGFramerPHPExceptions\exceptions\_BaseException;
56
use Throwable;
6-
use NGFramer\NGFramerPHPExceptions\exceptions\supportive\_BaseException;
77

88
class SqlServicesException extends _BaseException
99
{
10-
// Updated the values of this class.
11-
protected $message = "The request could not be completed.";
12-
// TODO: Change the code based on the documentation in the upcoming time.
13-
protected $code = 0;
14-
protected ?Throwable $previous = null;
15-
protected int $statusCode = 400;
16-
protected array $details = [];
10+
/**
11+
* SqlServicesException constructor.
12+
*
13+
* @param $message
14+
* @param int $code
15+
* @param Throwable|null $previous
16+
* @param int $statusCode
17+
* @param array $details
18+
*/
19+
public function __construct($message = null, int $code = 0, ?Throwable $previous = null, int $statusCode = 500, array $details = [])
20+
{
21+
// Call the parent constructor for exception.
22+
parent::__construct($message, $code, $previous, $statusCode, $details);
23+
}
1724
}

0 commit comments

Comments
 (0)