Exception: Laser::TopLevelSimulationRaised

Inherits:
Error show all
Defined in:
lib/laser/analysis/errors.rb

Constant Summary

Constant Summary

Constants inherited from Error

Error::ADVISORY, Error::ERROR, Error::FUCKUP, Error::MAJOR_ERROR, Error::MAJOR_WARNING, Error::MINOR_WARNING, Error::SIMPLE_ERROR, Error::STYLE, Error::TRICKY_ERROR, Error::WARNING

Constants inherited from Exception

Exception::BT_FAILURE_MESSAGE

Instance Attribute Summary (collapse)

Attributes inherited from Error

#ast_node, #severity

Instance Method Summary (collapse)

Methods inherited from Error

#==, #inspect, #line_number, severity

Methods inherited from Exception

#backtrace, #set_backtrace, #to_s

Constructor Details

- (TopLevelSimulationRaised) initialize(message, ast_node, detected_error)

Returns a new instance of TopLevelSimulationRaised



102
103
104
105
# File 'lib/laser/analysis/errors.rb', line 102

def initialize(message, ast_node, detected_error)
  super(message, ast_node, FUCKUP)
  @error = detected_error
end

Instance Attribute Details

- (Object) error (readonly)

Returns the value of attribute error



101
102
103
# File 'lib/laser/analysis/errors.rb', line 101

def error
  @error
end