Exception: Clerk::Errors::Base

Inherits:
StandardError
  • Object
show all
Defined in:
lib/clerk/errors.rb

Direct Known Subclasses

Authentication, Fatal

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, status:) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
# File 'lib/clerk/errors.rb', line 6

def initialize(msg, status:)
  @errors = msg["errors"]
  @status = status
  super(msg.merge("status" => status))
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/clerk/errors.rb', line 4

def status
  @status
end