Exception: Faulty::MissingDefaultInstanceError
- Inherits:
-
FaultyError
- Object
- StandardError
- FaultyError
- Faulty::MissingDefaultInstanceError
- Defined in:
- lib/faulty/error.rb
Overview
Raised if getting the default instance without initializing one
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ MissingDefaultInstanceError
constructor
A new instance of MissingDefaultInstanceError.
Constructor Details
#initialize(message = nil) ⇒ MissingDefaultInstanceError
Returns a new instance of MissingDefaultInstanceError.
25 26 27 28 |
# File 'lib/faulty/error.rb', line 25 def initialize( = nil) ||= 'No default instance. Create one with init or get your instance with Faulty[:name]' super() end |