Exception: Boar::Exceptions::Error
- Inherits:
-
Exception
- Object
- Exception
- Boar::Exceptions::Error
- Defined in:
- lib/boar/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code, message = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, message = nil) ⇒ Error
Returns a new instance of Error.
12 13 14 15 |
# File 'lib/boar/exceptions.rb', line 12 def initialize(code, = nil) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/boar/exceptions.rb', line 10 def code @code end |
Class Method Details
.must_raise?(exception) ⇒ Boolean
17 18 19 |
# File 'lib/boar/exceptions.rb', line 17 def self.must_raise?(exception) exception.is_a?(Lazier::Exceptions::Dump) && Rails.env.development? end |