Laravel UploadThing

UploadThingException extends Exception
in package

Table of Contents

Constants

ERROR_CODES  = [ // Generic "BAD_REQUEST" => 400, "NOT_FOUND" => 404, "FORBIDDEN" => 403, "INTERNAL_SERVER_ERROR" => 500, "INTERNAL_CLIENT_ERROR" => 500, // S3 specific "TOO_LARGE" => 413, "TOO_SMALL" => 400, "TOO_MANY_FILES" => 400, "KEY_TOO_LONG" => 400, // UploadThing specific "URL_GENERATION_FAILED" => 500, "UPLOAD_FAILED" => 500, "MISSING_ENV" => 500, "FILE_LIMIT_EXCEEDED" => 500, ]

Methods

__construct()  : mixed
fromResponse()  : mixed
getErrorCodeFromStatus()  : mixed

Constants

ERROR_CODES

public mixed ERROR_CODES = [ // Generic "BAD_REQUEST" => 400, "NOT_FOUND" => 404, "FORBIDDEN" => 403, "INTERNAL_SERVER_ERROR" => 500, "INTERNAL_CLIENT_ERROR" => 500, // S3 specific "TOO_LARGE" => 413, "TOO_SMALL" => 400, "TOO_MANY_FILES" => 400, "KEY_TOO_LONG" => 400, // UploadThing specific "URL_GENERATION_FAILED" => 500, "UPLOAD_FAILED" => 500, "MISSING_ENV" => 500, "FILE_LIMIT_EXCEEDED" => 500, ]

Methods

__construct()

public __construct(mixed $message[, mixed $code = 0 ][, Throwable $previous = null ]) : mixed
Parameters
$message : mixed
$code : mixed = 0
$previous : Throwable = null

fromResponse()

public static fromResponse(ResponseInterface $response) : mixed
Parameters
$response : ResponseInterface

getErrorCodeFromStatus()

public static getErrorCodeFromStatus(int $status) : mixed
Parameters
$status : int

        
On this page

Search results