Class: Glia::Errors::UnknownError
- Defined in:
- lib/glia/errors/client_errors.rb
Instance Attribute Summary
Attributes inherited from Error
#error_details, #message, #ref, #type
Instance Method Summary collapse
-
#initialize(field: nil, message: nil) ⇒ UnknownError
constructor
A new instance of UnknownError.
Methods inherited from Error
Constructor Details
#initialize(field: nil, message: nil) ⇒ UnknownError
Returns a new instance of UnknownError.
126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/glia/errors/client_errors.rb', line 126 def initialize(field: nil, message: nil) super( type: UNKNOWN_ERROR, ref: create_ref(UNKNOWN_ERROR), message: if field || "#{Naming.humanize(field)} validation failed with unknown error" else || 'Failed with unknown error' end ) end |