class Error

A validation error associated with a specific argument path.

Definitions

def initialize(path, code, **details)

Initialize the validation error.

Signature

parameter path Array(String | Integer)

The path to the invalid argument.

parameter code Symbol

The machine-readable error code.

parameter details Hash

Additional error details.

Implementation

def initialize(path, code, **details)
	@path = path
	@code = code
	@details = details.freeze
end

attr :path

The path to the invalid argument.

attr :code

The machine-readable error code.

attr :details

Additional error details.