TagValidationException
extends RuntimeException
in package
タグのバリデーションエラーをまとめて保持する例外
Table of Contents
Properties
- $errors : array<int, array{tag: string, index: int, type: string, message: string}>
- エラー情報の配列 [ ['tag' => 'タグ名', 'index' => 0, 'type' => 'reserved', 'message' => '...'], ['tag' => 'タグ名', 'index' => 0, 'type' => 'invalid_format', 'message' => '...'], ... ]
Methods
- __construct() : mixed
- getErrors() : array<int, array{tag: string, index: int, type: string, message: string}>
- エラー情報を取得
- buildMessage() : string
- エラーメッセージを構築
Properties
$errors
エラー情報の配列 [ ['tag' => 'タグ名', 'index' => 0, 'type' => 'reserved', 'message' => '...'], ['tag' => 'タグ名', 'index' => 0, 'type' => 'invalid_format', 'message' => '...'], ... ]
private
array<int, array{tag: string, index: int, type: string, message: string}>
$errors
Methods
__construct()
public
__construct(array<int, array{tag: string, index: int, type: string, message: string}> $errors) : mixed
Parameters
- $errors : array<int, array{tag: string, index: int, type: string, message: string}>
-
エラー情報の配列
getErrors()
エラー情報を取得
public
getErrors() : array<int, array{tag: string, index: int, type: string, message: string}>
Return values
array<int, array{tag: string, index: int, type: string, message: string}>buildMessage()
エラーメッセージを構築
private
buildMessage() : string