Exception: DeprecatedError

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

Overview

This is the class of the errors that the ‘Deprecate’ module will throw if the action type is set to ‘:throw’.

See Deprecate.set_action for more information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ DeprecatedError

Returns a new instance of DeprecatedError.



157
158
159
# File 'lib/deprecated.rb', line 157

def initialize(msg=nil)
  @message = msg
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



156
157
158
# File 'lib/deprecated.rb', line 156

def message
  @message
end