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