Exception: Dart2JsExceptions::CompilationException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/dart2js_exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmd, in_file, result) ⇒ CompilationException

Returns a new instance of CompilationException.



5
6
7
8
9
10
# File 'lib/dart2js_exceptions.rb', line 5

def initialize cmd, in_file, result
  super("dart2js failed to compile '#{in_file}'")
  @result = result;
  @cmd = cmd;
  @in_file = in_file;
end

Instance Attribute Details

#cmdObject (readonly)

Returns the value of attribute cmd.



3
4
5
# File 'lib/dart2js_exceptions.rb', line 3

def cmd
  @cmd
end

#in_fileObject (readonly)

Returns the value of attribute in_file.



3
4
5
# File 'lib/dart2js_exceptions.rb', line 3

def in_file
  @in_file
end

#resultObject (readonly)

Returns the value of attribute result.



3
4
5
# File 'lib/dart2js_exceptions.rb', line 3

def result
  @result
end