Exception: PerfectAudit::Error
- Inherits:
-
StandardError
- Object
- StandardError
- PerfectAudit::Error
- Defined in:
- lib/perfect_audit/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(message, code) ⇒ Error
Returns a new instance of Error.
7 8 9 10 |
# File 'lib/perfect_audit/error.rb', line 7 def initialize(, code) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/perfect_audit/error.rb', line 5 def code @code end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/perfect_audit/error.rb', line 12 def to_s super + " [#{@code}]" end |