Exception: CrocodocError
- Inherits:
-
StandardError
- Object
- StandardError
- CrocodocError
- Defined in:
- lib/crocodoc_error.rb
Overview
CrocodocError extends the default exception class. It adds a code field.
Instance Method Summary collapse
-
#code ⇒ Object
Get the error code.
-
#initialize(message, code) ⇒ CrocodocError
constructor
A new instance of CrocodocError.
Constructor Details
#initialize(message, code) ⇒ CrocodocError
Returns a new instance of CrocodocError.
12 13 14 15 |
# File 'lib/crocodoc_error.rb', line 12 def initialize(, code) super @code = code end |
Instance Method Details
#code ⇒ Object
Get the error code
8 9 10 |
# File 'lib/crocodoc_error.rb', line 8 def code @code end |