Skip to content

Commit

Permalink
fix exception heirarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Feb 6, 2013
1 parent 8de3356 commit c542922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/psych.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class Exception < RuntimeError
class BadAlias < Exception
end

class DisallowedClass < RuntimeError
class DisallowedClass < Exception
def initialize klass_name
super "Tried to load unspecified class: #{klass_name}"
end
Expand Down

0 comments on commit c542922

Please sign in to comment.