mirror of
https://github.com/sakaljurgis/actions-api.git
synced 2026-07-08 22:07:40 +00:00
initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user