SubCategoryValidationException
extends RuntimeException
in package
サブカテゴリーのバリデーションエラーをまとめて保持する例外
Table of Contents
Properties
- $errors : array<int, array{type: string, message: string, limit?: int, count?: int}>
- エラー情報の配列 [ ['type' => 'limit_exceeded', 'message' => '...', 'limit' => 10, 'count' => 15], ... ]
Methods
- __construct() : mixed
- getErrors() : array<int, array{type: string, message: string, limit?: int, count?: int}>
- エラー情報を取得
- buildMessage() : string
- エラーメッセージを構築
Properties
$errors
エラー情報の配列 [ ['type' => 'limit_exceeded', 'message' => '...', 'limit' => 10, 'count' => 15], ... ]
private
array<int, array{type: string, message: string, limit?: int, count?: int}>
$errors
Methods
__construct()
public
__construct(array<int, array{type: string, message: string, limit?: int, count?: int}> $errors) : mixed
Parameters
- $errors : array<int, array{type: string, message: string, limit?: int, count?: int}>
-
エラー情報の配列
getErrors()
エラー情報を取得
public
getErrors() : array<int, array{type: string, message: string, limit?: int, count?: int}>
Return values
array<int, array{type: string, message: string, limit?: int, count?: int}>buildMessage()
エラーメッセージを構築
private
buildMessage() : string