Class: Tama::Error::ValidationError
- Inherits:
-
Error
- Object
- Error
- Tama::Error::ValidationError
- Defined in:
- lib/tama/error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = "Validation failed", errors: {}, status: nil) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message = "Validation failed", errors: {}, status: nil) ⇒ ValidationError
Returns a new instance of ValidationError.
11 12 13 14 15 |
# File 'lib/tama/error.rb', line 11 def initialize( = "Validation failed", errors: {}, status: nil) @errors = errors @status = status super() end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
9 10 11 |
# File 'lib/tama/error.rb', line 9 def errors @errors end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
9 10 11 |
# File 'lib/tama/error.rb', line 9 def status @status end |