Exception: Semantics3::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Semantics3::Error
- Defined in:
- lib/semantics3.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.
264 265 266 267 |
# File 'lib/semantics3.rb', line 264 def initialize(type=nil, =nil, param=nil) @message = 'Error: ' + type + ' Message: ' + @message += ' Failed at parameter: ' + param if not param.nil? end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
261 262 263 |
# File 'lib/semantics3.rb', line 261 def @message end |
#param ⇒ Object (readonly)
Returns the value of attribute param.
262 263 264 |
# File 'lib/semantics3.rb', line 262 def param @param end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
260 261 262 |
# File 'lib/semantics3.rb', line 260 def type @type end |