Exception: RouteError

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

Overview

ruby-crisp-api

Copyright 2018, Valerian Saliou Author: Valerian Saliou <[email protected]>

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ RouteError

Returns a new instance of RouteError.



9
10
11
12
13
# File 'lib/errors/route.rb', line 9

def initialize(reason)
  @reason = reason

  super(reason)
end

Instance Method Details

#to_sObject



15
16
17
# File 'lib/errors/route.rb', line 15

def to_s
  @reason
end