Sha256: b9280e729faa2157ce96a90c919e548f51fdf2f8e4d86a4b3f9d2849fe1fbc27
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
module Disallow class Error < StandardError end class DefaultScopeError < Error def initialize(class_name) super("default_scope is not allowed on #{class_name}") end end class CallbackError < Error def initialize(class_name, callback_name) sbj = callback_name ? "#{callback_name} callback is" : "all callbacks are" super("#{sbj} not allowed on #{class_name}") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
disallow-0.1.1 | lib/disallow/exceptions.rb |
disallow-0.1.0 | lib/disallow/exceptions.rb |