Exception: ExistException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ExistException
- Defined in:
- lib/exist_exception.rb
Overview
To change this template, choose Tools | Templates and open the template in the editor.
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(_description = "Epic fail \n", _number = nil) ⇒ ExistException
constructor
A new instance of ExistException.
- #inspect ⇒ Object
- #to_s ⇒ Object
- #tostring ⇒ Object
Constructor Details
#initialize(_description = "Epic fail \n", _number = nil) ⇒ ExistException
Returns a new instance of ExistException.
9 10 11 12 |
# File 'lib/exist_exception.rb', line 9 def initialize(_description = "Epic fail \n", _number = nil) @description = _description + "\n" @number = _number end |
Instance Method Details
#code ⇒ Object
26 27 28 |
# File 'lib/exist_exception.rb', line 26 def code @number end |
#inspect ⇒ Object
14 15 16 |
# File 'lib/exist_exception.rb', line 14 def inspect self.tostring end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/exist_exception.rb', line 18 def to_s self.tostring end |
#tostring ⇒ Object
22 23 24 |
# File 'lib/exist_exception.rb', line 22 def tostring @number.to_s + ": " +@description end |