Exception: Faulty::MissingDefaultInstanceError

Inherits:
FaultyError
  • Object
show all
Defined in:
lib/faulty/error.rb

Overview

Raised if getting the default instance without initializing one

Instance Method Summary collapse

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(message = nil)
  message ||= 'No default instance. Create one with init or get your instance with Faulty[:name]'
  super(message)
end