Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
5 / 5 |
|
100.00% |
4 / 4 |
CRAP | |
100.00% |
1 / 1 |
| ApiException | |
100.00% |
5 / 5 |
|
100.00% |
4 / 4 |
4 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getResponseObject | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getErrorDetails | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| setErrorDetails | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * ApiException. |
| 5 | * |
| 6 | * @category Class |
| 7 | * |
| 8 | * @author OpenAPI Generator team |
| 9 | * |
| 10 | * @see https://openapi-generator.tech |
| 11 | */ |
| 12 | |
| 13 | /** |
| 14 | * Server API. |
| 15 | * |
| 16 | * Fingerprint Server API allows you to get, search, and update Events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. |
| 17 | * |
| 18 | * The version of the OpenAPI document: 4 |
| 19 | * Contact: support@fingerprint.com |
| 20 | * Generated by: https://openapi-generator.tech |
| 21 | * Generator version: 7.21.0 |
| 22 | */ |
| 23 | |
| 24 | /** |
| 25 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 26 | * https://openapi-generator.tech |
| 27 | * Do not edit the class manually. |
| 28 | */ |
| 29 | |
| 30 | namespace Fingerprint\ServerSdk; |
| 31 | |
| 32 | use Fingerprint\ServerSdk\Model\ModelInterface; |
| 33 | use Psr\Http\Message\ResponseInterface; |
| 34 | |
| 35 | /** |
| 36 | * ApiException Class Doc Comment. |
| 37 | * |
| 38 | * @category Class |
| 39 | * |
| 40 | * @author OpenAPI Generator team |
| 41 | * |
| 42 | * @see https://openapi-generator.tech |
| 43 | */ |
| 44 | class ApiException extends \Exception |
| 45 | { |
| 46 | protected ?ResponseInterface $responseObject; |
| 47 | |
| 48 | protected ?ModelInterface $errorDetails = null; |
| 49 | |
| 50 | public function __construct(?string $message = '', ?int $code = 0, ?ResponseInterface $response = null, ?\Throwable $previous = null) |
| 51 | { |
| 52 | parent::__construct($message, $code, $previous); |
| 53 | $this->responseObject = $response; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Gets the deserialized response object (during deserialization). |
| 58 | * |
| 59 | * @return ResponseInterface|null the deserialized response object |
| 60 | */ |
| 61 | public function getResponseObject(): ?ResponseInterface |
| 62 | { |
| 63 | return $this->responseObject; |
| 64 | } |
| 65 | |
| 66 | public function getErrorDetails(): ModelInterface |
| 67 | { |
| 68 | return $this->errorDetails; |
| 69 | } |
| 70 | |
| 71 | public function setErrorDetails(ModelInterface $errorDetails): void |
| 72 | { |
| 73 | $this->errorDetails = $errorDetails; |
| 74 | } |
| 75 | } |