Exception: InstantCache::CounterIntegerOnly

Inherits:
Exception
  • Object
show all
Defined in:
lib/instantcache/exceptions.rb

Overview

Counter variables are only permitted to be frobbed with integers. We gritch if anything else is attempted.

Constant Summary collapse

MessageFormat =

raise CounterIntegerOnly

=> InstantCache::CounterIntegerOnly: variables declared as counters are integer-only

raise CounterIntegerOnly.new('name')

=> InstantCache::CounterIntegerOnly: variables declared as counters are integer-only: name
[
 'variables declared as counters are integer-only',
 'variables declared as counters are integer-only: %s',
]

Method Summary

Methods inherited from Exception

#initialize, #message, #to_s

Constructor Details

This class inherits a constructor from InstantCache::Exception