Exception: InstantCache::IncompatibleType
- Defined in:
- lib/instantcache/exceptions.rb
Overview
Because of the annotation of returned values with callback singleton methods, it’s possible for multiple user variables to hold references to a cell. E.g., one might remember the cell as a hash and modify an element, even though the cell has actually be explicitly set to something else. This exception is raised if there’s a mismatch when an annotation tries to update the cell.
TODO: This is not working properly yet.
Constant Summary collapse
- MessageFormat =
raise IncompatibleType=> InstantCache::IncompatibleType: variable class incompatible with cached valueraise IncompatibleType.new('Hash', 'Array', 'name')=> InstantCache::IncompatibleType: variable class "Hash" incompatible with class "Array" of cached variable "name"', [ 'variable class incompatible with cached value', 'variable class "%s" incompatible with class "%s" ' + 'of cached variable "%s"', ]
Method Summary
Methods inherited from Exception
Constructor Details
This class inherits a constructor from InstantCache::Exception