mirror of
https://github.com/sakaljurgis/actions-api.git
synced 2026-07-09 06:17:39 +00:00
20 lines
314 B
PHP
20 lines
314 B
PHP
<?php
|
|
|
|
namespace App\Services\Google\Error;
|
|
|
|
use Exception;
|
|
|
|
class APIError extends Exception
|
|
{
|
|
public $code;
|
|
public $message;
|
|
|
|
public function __construct(string $message, int $code)
|
|
{
|
|
parent::__construct($message);
|
|
|
|
$this->code = $code;
|
|
$this->message = $message;
|
|
}
|
|
}
|