Exception: Acter::InvalidSchema
- Defined in:
- lib/acter/error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, errors = nil) ⇒ InvalidSchema
constructor
A new instance of InvalidSchema.
- #to_s ⇒ Object
Constructor Details
#initialize(message, errors = nil) ⇒ InvalidSchema
Returns a new instance of InvalidSchema.
12 13 14 15 |
# File 'lib/acter/error.rb', line 12 def initialize(, errors = nil) @message = @errors = Array(errors) end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
16 17 18 |
# File 'lib/acter/error.rb', line 16 def @message end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/acter/error.rb', line 17 def to_s @errors.dup.unshift(@message).join("\n\t") end |