RubyGems Navigation menu

standard_exceptions 0.1.3

There is great benefit in adopting a standard library of exceptions. Projects and libraries can all assume the same set of exception classes will be raised and caught using the built in language rescue keyword which filters on class. It becomes especially powerful for building API's, where specific exception classes can be made to return specific HTTP status codes. This libary also provides helper bang-methods eg. unauthorised! for raising these standard kinds of errors

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.1.4.1 - March 31, 2017 (17 KB)
  2. 0.1.4 - March 30, 2017 (17.5 KB)
  3. 0.1.3 - March 30, 2017 (17 KB)

Development Dependencies (2):

bundler ~> 1.12
rake ~> 10.0

Owners:

Authors:

  • Gary McGhee

SHA 256 checksum:

21031e49792eb2a270dbb27392ee6b9e810ef467f1d5cb6d7a48b8f4b52dfed3

Total downloads 6,014

For this version 1,674

License:

MIT

Required Ruby Version: >= 0

Links: