summaryrefslogtreecommitdiff
path: root/lib/psych/exception.rb
blob: ce9d2caf3fb254b7abd8fff9c15d7e68f1c4fd37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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