Exception: Peruby::PerlError
- Defined in:
- lib/peruby/errors.rb
Overview
Runtime exception retaining Perl's scalar error value.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #formatted? ⇒ Boolean
-
#initialize(message = nil, value: nil, formatted: false) ⇒ PerlError
constructor
A new instance of PerlError.
Constructor Details
#initialize(message = nil, value: nil, formatted: false) ⇒ PerlError
Returns a new instance of PerlError.
32 33 34 35 36 |
# File 'lib/peruby/errors.rb', line 32 def initialize( = nil, value: nil, formatted: false) @value = value.nil? ? : value @formatted = formatted super() end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
30 31 32 |
# File 'lib/peruby/errors.rb', line 30 def value @value end |
Instance Method Details
#formatted? ⇒ Boolean
38 |
# File 'lib/peruby/errors.rb', line 38 def formatted? = @formatted |