class Error
A validation error associated with a specific argument path.
Definitions
def initialize(path, code, **details)
Initialize the validation error.
Signature
-
parameter
pathArray(String | Integer) The path to the invalid argument.
-
parameter
codeSymbol The machine-readable error code.
-
parameter
detailsHash 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.