summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych/exception.rb
blob: 83c3d7fa82dbbe67e1b6d224eb348f41967dc4e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: false
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