Permalink
Browse files

fix exception heirarchy

  • Loading branch information...
tenderlove committed Feb 6, 2013
1 parent 8de3356 commit c542922bd301b536af3bfdec5777525acf5a4a10
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/psych.rb
View
@@ -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

0 comments on commit c542922

Please sign in to comment.