Class: Mustang::V8::Error
- Defined in:
- lib/mustang/v8/error.rb,
ext/v8/v8_errors.cpp
Direct Known Subclasses
Instance Attribute Summary collapse
- #end_col ⇒ Object readonly
- #line_no ⇒ Object readonly
- #message ⇒ Object readonly
- #script_name ⇒ Object readonly
- #source_line ⇒ Object readonly
- #stack_trace ⇒ Object readonly
- #start_col ⇒ Object readonly
Instance Method Summary collapse
- #inspect ⇒ Object
- #name ⇒ Object
-
#range_error? ⇒ Boolean
Returns
true
when it represents an range error. -
#reference_error? ⇒ Boolean
Returns
true
when it represents an reference error. -
#syntax_error? ⇒ Boolean
Returns
true
when it represents an syntax error. - #to_s ⇒ Object
-
#type_error? ⇒ Boolean
Returns
true
when it represents an type error.
Instance Attribute Details
#end_col ⇒ Object (readonly)
#line_no ⇒ Object (readonly)
#message ⇒ Object (readonly)
#script_name ⇒ Object (readonly)
#source_line ⇒ Object (readonly)
#stack_trace ⇒ Object (readonly)
#start_col ⇒ Object (readonly)
Instance Method Details
#inspect ⇒ Object
4 5 6 |
# File 'lib/mustang/v8/error.rb', line 4 def inspect "#{name}: #{}" end |
#name ⇒ Object
12 13 14 |
# File 'lib/mustang/v8/error.rb', line 12 def name self.class.name.delete("Mustang::V8::") end |
#range_error? ⇒ Boolean
Returns true
when it represents an range error.
39 40 41 42 |
# File 'ext/v8/v8_errors.cpp', line 39
static VALUE rb_v8_error_range_error_p(VALUE self)
{
return rb_obj_is_kind_of(self, rb_eV8RangeError);
}
|
#reference_error? ⇒ Boolean
Returns true
when it represents an reference error.
51 52 53 54 |
# File 'ext/v8/v8_errors.cpp', line 51
static VALUE rb_v8_error_reference_error_p(VALUE self)
{
return rb_obj_is_kind_of(self, rb_eV8ReferenceError);
}
|
#syntax_error? ⇒ Boolean
Returns true
when it represents an syntax error.
27 28 29 30 |
# File 'ext/v8/v8_errors.cpp', line 27
static VALUE rb_v8_error_syntax_error_p(VALUE self)
{
return rb_obj_is_kind_of(self, rb_eV8SyntaxError);
}
|
#to_s ⇒ Object
8 9 10 |
# File 'lib/mustang/v8/error.rb', line 8 def to_s end |
#type_error? ⇒ Boolean
Returns true
when it represents an type error.
63 64 65 66 |
# File 'ext/v8/v8_errors.cpp', line 63
static VALUE rb_v8_error_type_error_p(VALUE self)
{
return rb_obj_is_kind_of(self, rb_eV8TypeError);
}
|