Exception: PgDice::InsufficientTablesError

Inherits:
Error
  • Object
show all
Defined in:
lib/pgdice/error.rb

Overview

Generic error for table counts

Instance Method Summary collapse

Constructor Details

#initialize(direction, table_name, expected, period, found_count) ⇒ InsufficientTablesError

Returns a new instance of InsufficientTablesError.



26
27
28
29
# File 'lib/pgdice/error.rb', line 26

def initialize(direction, table_name, expected, period, found_count)
  super("Insufficient #{direction} tables exist for table: #{table_name}. "\
        "Expected: #{expected} having period of: #{period} but found: #{found_count}")
end