Exception: CALLR::CallrException

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

Direct Known Subclasses

CallrLocalException

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code = 0, data = nil) ⇒ CallrException

Returns a new instance of CallrException.



165
166
167
168
169
# File 'lib/callr.rb', line 165

def initialize(msg, code = 0, data = nil)
  @msg = msg
  @code = code
  @data = data
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



162
163
164
# File 'lib/callr.rb', line 162

def code
  @code
end

#dataObject (readonly)

Returns the value of attribute data.



163
164
165
# File 'lib/callr.rb', line 163

def data
  @data
end

#msgObject (readonly)

Returns the value of attribute msg.



161
162
163
# File 'lib/callr.rb', line 161

def msg
  @msg
end