Humanist::Errors
Humanist errors is a system for extending ruby exception messages. It will prepend the standard output with text defined in the humanist errors dictionary.
Installation
Add this line to your application's Gemfile:
gem 'humanist-errors'
And then execute:
$ bundle
Or install it yourself as:
$ gem install humanist-errors
Usage
Include humanist errors in your project, and when ever you want better errors wrap your code like this:
with_human_errors do
#...
end
This gem is intended for use in development and test environments only.
Contributing
- Fork it ( https://github.com/[my-github-username]/humanist-errors/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
TODO
1) fill out tests for search.rb
High level exception tree:
Exception
NoMethodError
ScriptError
LoadError
NotImplementedError
SyntaxError
SignalException
Interrupt
StandardError
ArgumentError
IOError
EOFError
IndexError
LocalJumpError
NameError
NoMethodError
RangeError
FloatDomainError
RuntimeError
SecurityError
SystemCallError
SystemStackError
ThreadError
ZeroDivisionError
SystemExit
fatal