23 lines
661 B
PHP
23 lines
661 B
PHP
<?php
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
namespace CloudObjects\SDK\Exceptions;
|
|
|
|
/**
|
|
* An Exception that is thrown when the Core API returned an error.
|
|
*/
|
|
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);
|
|
}
|
|
|
|
}
|