Improved exception handling
This commit is contained in:
1 parent
70c52b8ad2
commit
12ed032a31
3 files changed
+50
-9
No files matched your search
@@ -11,4 +11,12 @@ namespace CloudObjects\SDK\Exceptions;
|
||||
*/
|
||||
class CoreAPIException extends SDKException {
|
||||
|
||||
/**
|
||||
* @param string $message The error message.
|
||||
* @param \Throwable|null $previous The original exception that caused this error, if any.
|
||||
*/
|
||||
public function __construct(string $message = "", ?\Throwable $previous = null) {
|
||||
parent::__construct($message, 0, $previous);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user