Registry / utility / contextual-exceptions

contextual-exceptions

JSON →
library0.0.2rbrubygemsunverified

Provides an easy way to create and raise custom exceptions with contextual information from previously raised system exceptions in Ruby >= 2.0.0.

gem install contextual_exceptions
INSTALL
IMPORT
SIG · CONTEXTUAL-EXCEPTI
C
contextual-exceptions
utilityrubyv0.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ContextualExceptions
require 'contextual_exceptions'

Raise a contextual exception with original error info

require 'contextual_exceptions' begin raise StandardError, 'original error' rescue => e raise ContextualExceptions::ContextualError.new(e, 'additional context') end
Debug
Known issues
breakingRequires Ruby >= 2.0.0; may not work on older versions.
fix
Upgrade Ruby to 2.0.0 or later.
affects: < 0.0.2
Upgrade
Version history
0.0.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
contextual-exceptions — gem install contextual-exceptions · libregistry