Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Commit

Permalink
added error handling class
Browse files Browse the repository at this point in the history
  • Loading branch information
nirnanaaa committed Mar 29, 2013
1 parent 3efaa44 commit 774f5cf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/gollum_rails/adapters/gollum/error.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module GollumRails
module Adapters
module Gollum

# Gollum adapter Error handling class
#
# provides better errors
class Error < ::StandardError

# does the formatting of the Error message
#
#
def initialize(error_message, urgence)
super "#{urgence.upcase} :: #{error_message}"
end
end
end
end
end

0 comments on commit 774f5cf

Please sign in to comment.