Exception: Safen::SafenError
- Inherits:
-
StandardError
- Object
- StandardError
- Safen::SafenError
- Defined in:
- lib/safen/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code = nil) ⇒ SafenError
constructor
A new instance of SafenError.
Constructor Details
#initialize(code = nil) ⇒ SafenError
Returns a new instance of SafenError.
5 6 7 |
# File 'lib/safen/error.rb', line 5 def initialize(code = nil) @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/safen/error.rb', line 3 def code @code end |