Exception: MSPhysics::ScriptException

Inherits:
Exception
  • Object
show all
Defined in:
RubyExtension/MSPhysics/script_exception.rb

Overview

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, backtrace, entity, line) ⇒ ScriptException

Returns a new instance of ScriptException.

Parameters:

  • message (String)
  • backtrace (Array<String>)
  • entity (Sketchup::Group, Sketchup::ComponentInstance)
  • line (Integer, nil)

Since:

  • 1.0.0



8
9
10
11
12
13
14
# File 'RubyExtension/MSPhysics/script_exception.rb', line 8

def initialize(message, backtrace, entity, line)
  AMS.validate_type(entity, Sketchup::Group, Sketchup::ComponentInstance)
  super(message)
  set_backtrace(backtrace)
  @entity = entity
  @line = line ? line.to_i : nil
end

Instance Attribute Details

#entitySketchup::Group, Sketchup::ComponentInstance (readonly)

Returns:

  • (Sketchup::Group, Sketchup::ComponentInstance)

Since:

  • 1.0.0



# File 'RubyExtension/MSPhysics/script_exception.rb', line 16

#lineInteger? (readonly)

Returns:

  • (Integer, nil)

Since:

  • 1.0.0



# File 'RubyExtension/MSPhysics/script_exception.rb', line 19