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