Exception: InstantCache::SharedOnly

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

Overview

User-supplied names are only permitted for shared variables; otherwise private ones may get inadvertently shared and bollixed.

Constant Summary collapse

MessageFormat =

raise SharedOnly

=> InstantCache::SharedOnly: custom names are only permitted for shared variables

raise SharedOnly.new('name')

=> InstantCache::SharedOnly: custom names are only permitted for shared variables; 'name' is labelled as private
[
 'custom names are only permitted for shared variables',
 ('custom names are only permitted for shared variables; ' +
  "'%s' is labelled as private"),
]

Method Summary

Methods inherited from Exception

#initialize, #message, #to_s

Constructor Details

This class inherits a constructor from InstantCache::Exception