Exception: RubyPitaya::RouteError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rubypitaya/core/route_error.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/core/route_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ RouteError

Returns a new instance of RouteError.



6
7
8
9
10
11
# File 'lib/rubypitaya/core/route_error.rb', line 6

def initialize(code, message)
  @code = code
  @message = message

  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/rubypitaya/core/route_error.rb', line 4

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



4
5
6
# File 'lib/rubypitaya/core/route_error.rb', line 4

def message
  @message
end