NoraBear Package API Documentation

UserRuntimeError extends RuntimeException
in package

ユーザー起因のランタイムエラー

ユーザーの入力や操作に起因するエラーを表します。 デフォルトのHTTPステータスコードは400 (Bad Request) です。

Tags
example
// 404エラー
throw new UserRuntimeError('User not found', 404);

// 403エラー
throw new UserRuntimeError('Access denied', 403);

Table of Contents

Methods

__construct()  : mixed

Methods

__construct()

public __construct([string $message = "" ][, int $code = 400 ][, Throwable|null $previous = null ]) : mixed
Parameters
$message : string = ""
$code : int = 400
$previous : Throwable|null = null

        
On this page

Search results