Laravel Hetzner Storagebox

PHP MIT

Production-ready Laravel package for integrating Hetzner Storage Box into Laravel applications using the native Storage facade and filesystem API.

Stars
19
Forks
0
Downloads
2,357
Open Issues
0
Files main

Repository Files

Loading file structure...
src/Exceptions/ApiException.php
<?php

namespace GhostCompiler\Hetzner\StorageBox\Exceptions;

class ApiException extends HetznerException
{
    protected string $errorCode;

    protected array $details;

    public function __construct(string $message, int $code, string $errorCode = '', array $details = [], ?\Throwable $previous = null)
    {
        parent::__construct($message, $code, $previous);
        $this->errorCode = $errorCode;
        $this->details = $details;
    }

    public function getErrorCode(): string
    {
        return $this->errorCode;
    }

    public function getErrorDetails(): array
    {
        return $this->details;
    }
}