class

Azu::Response::ValidationError

Inherits Azu::Response::Error < Azu::Response < Exception < Reference < Object

Validation-specific error with detailed field errors

Constructors

new(field_errors : Hash(String, Array(String)), context : ErrorContext | Nil = nil)
Source
new(field : String, message : String, context : ErrorContext | Nil = nil)
Source

Instance methods

add_field_error(field : String, message : String)
Source
field_errors
Source
json
Source