Exception: Pricesphere::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Pricesphere::Error
- Defined in:
- lib/pricesphere/error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#param ⇒ Object
readonly
Returns the value of attribute param.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type = nil, message = nil, param = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(type = nil, message = nil, param = nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 |
# File 'lib/pricesphere/error.rb', line 7 def initialize(type=nil, =nil, param=nil) = 'Error: ' + type + ' Message: ' + += ' Failed at parameter: ' + param if not param.nil? end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/pricesphere/error.rb', line 4 def end |
#param ⇒ Object (readonly)
Returns the value of attribute param.
5 6 7 |
# File 'lib/pricesphere/error.rb', line 5 def param @param end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/pricesphere/error.rb', line 3 def type @type end |