Sha256: d88beb3f450e48b798a39087d43c3495ca5308d9ebadee072c18410dc68b42fd
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
require File.join(File.dirname(__FILE__), 'chained_error') # A ItemError is used to wrap a causal exception # And create a new exception that usually terminates processing of the current item # the druid parameter makes it convenient to include the object id using a std message syntax module LyberCore module Exceptions class ItemError < LyberCore::Exceptions::ChainedError def initialize(druid, msg, cause=nil) if (druid) message = "#{druid} - #{msg}" else message= msg end super(message, cause) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lyber-core-1.3.0 | lib/lyber_core/exceptions/item_error.rb |