Exception: PgDice::NotConfiguredError
- Inherits:
-
ConfigurationError
- Object
- StandardError
- Error
- ConfigurationError
- PgDice::NotConfiguredError
- Defined in:
- lib/pgdice/error.rb
Overview
Error thrown if you call a method that requires configuration first
Instance Method Summary collapse
-
#initialize(method_name) ⇒ NotConfiguredError
constructor
A new instance of NotConfiguredError.
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 |