Exception: Rod::RodException

Inherits:
Exception
  • Object
show all
Defined in:
lib/rod/exception.rb

Overview

Base class for all Rod exceptions

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ RodException

Returns a new instance of RodException.



5
6
7
# File 'lib/rod/exception.rb', line 5

def initialize(message)
  @message = message
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/rod/exception.rb', line 9

def to_s
  "Rod exception: #{@message}"
end