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.
285 286 287 288 |
# File 'lib/semantics3.rb', line 285 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.
282 283 284 |
# File 'lib/semantics3.rb', line 282 def @message end |
#param ⇒ Object (readonly)
Returns the value of attribute param.
283 284 285 |
# File 'lib/semantics3.rb', line 283 def param @param end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
281 282 283 |
# File 'lib/semantics3.rb', line 281 def type @type end |