summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych/exception.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/psych/lib/psych/exception.rb')
-rw-r--r--ext/psych/lib/psych/exception.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/psych/lib/psych/exception.rb b/ext/psych/lib/psych/exception.rb
index d96c527cfb..ce9d2caf3f 100644
--- a/ext/psych/lib/psych/exception.rb
+++ b/ext/psych/lib/psych/exception.rb
@@ -4,4 +4,10 @@ module Psych
class BadAlias < Exception
end
+
+ class DisallowedClass < Exception
+ def initialize klass_name
+ super "Tried to load unspecified class: #{klass_name}"
+ end
+ end
end