Exception: Glslkit::WebGL::CompileError
- Inherits:
-
ShaderError
- Object
- StandardError
- Error
- ShaderError
- Glslkit::WebGL::CompileError
- Defined in:
- lib/glslkit/webgl/errors.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#raw_log ⇒ Object
readonly
Returns the value of attribute raw_log.
-
#stage ⇒ Object
readonly
Returns the value of attribute stage.
Instance Method Summary collapse
-
#initialize(stage:, raw_log:, file: nil, line: nil, detail: nil) ⇒ CompileError
constructor
A new instance of CompileError.
Constructor Details
#initialize(stage:, raw_log:, file: nil, line: nil, detail: nil) ⇒ CompileError
Returns a new instance of CompileError.
19 20 21 22 23 24 25 26 27 |
# File 'lib/glslkit/webgl/errors.rb', line 19 def initialize(stage:, raw_log:, file: nil, line: nil, detail: nil) @stage = stage @file = file @line = line @raw_log = raw_log.to_s = detail || @raw_log = "#{file}:#{line}: #{}" if file && line super() end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
17 18 19 |
# File 'lib/glslkit/webgl/errors.rb', line 17 def file @file end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
17 18 19 |
# File 'lib/glslkit/webgl/errors.rb', line 17 def line @line end |
#raw_log ⇒ Object (readonly)
Returns the value of attribute raw_log.
17 18 19 |
# File 'lib/glslkit/webgl/errors.rb', line 17 def raw_log @raw_log end |
#stage ⇒ Object (readonly)
Returns the value of attribute stage.
17 18 19 |
# File 'lib/glslkit/webgl/errors.rb', line 17 def stage @stage end |