Exception: PgDice::NotConfiguredError

Inherits:
ConfigurationError show all
Defined in:
lib/pgdice/error.rb

Overview

Error thrown if you call a method that requires configuration first

Instance Method Summary collapse

Constructor Details

#initialize(method_name) ⇒ NotConfiguredError

Returns a new instance of NotConfiguredError.



52
53
54
55
# File 'lib/pgdice/error.rb', line 52

def initialize(method_name)
  super("Cannot use #{method_name} before PgDice has been configured! "\
      'See README.md for configuration help.')
end