Exception: Substation::Error

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

Overview

Base class for substation errors

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ Error

Returns a new instance of Error


53
54
55
# File 'lib/substation.rb', line 53

def initialize(object)
  super(self.class.msg(object))
end

Class Method Details

.msg(object) ⇒ Object


49
50
51
# File 'lib/substation.rb', line 49

def self.msg(object)
  self::MSG % object.inspect
end