Exception: MSPhysics::ScriptException
- Inherits:
-
Exception
- Object
- Exception
- MSPhysics::ScriptException
- Defined in:
- RubyExtension/MSPhysics/script_exception.rb
Overview
Instance Attribute Summary collapse
- #entity ⇒ Sketchup::Group, Sketchup::ComponentInstance readonly
- #line ⇒ Integer? readonly
Instance Method Summary collapse
-
#initialize(message, backtrace, entity, line) ⇒ ScriptException
constructor
A new instance of ScriptException.
Constructor Details
#initialize(message, backtrace, entity, line) ⇒ ScriptException
Returns a new instance of ScriptException.
8 9 10 11 12 13 14 |
# File 'RubyExtension/MSPhysics/script_exception.rb', line 8 def initialize(, backtrace, entity, line) AMS.validate_type(entity, Sketchup::Group, Sketchup::ComponentInstance) super() set_backtrace(backtrace) @entity = entity @line = line ? line.to_i : nil end |
Instance Attribute Details
#entity ⇒ Sketchup::Group, Sketchup::ComponentInstance (readonly)
|
# File 'RubyExtension/MSPhysics/script_exception.rb', line 16
|
#line ⇒ Integer? (readonly)
|
# File 'RubyExtension/MSPhysics/script_exception.rb', line 19
|