Sha256: fbdb3fb7131fee55b0de3c8accfc3ec64e623cd6010cd9dfaac050f9a8282354

Contents?: true

Size: 726 Bytes

Versions: 4621

Compression:

Stored size: 726 Bytes

Contents

# frozen_string_literal: true
module Psych
  class Exception < RuntimeError
  end

  class BadAlias < Exception
  end

  # Subclasses `BadAlias` for backwards compatibility
  class AliasesNotEnabled < BadAlias
    def initialize
      super "Alias parsing was not enabled. To enable it, pass `aliases: true` to `Psych::load` or `Psych::safe_load`."
    end
  end

  # Subclasses `BadAlias` for backwards compatibility
  class AnchorNotDefined < BadAlias
    def initialize anchor_name
      super "An alias referenced an unknown anchor: #{anchor_name}"
    end
  end

  class DisallowedClass < Exception
    def initialize action, klass_name
      super "Tried to #{action} unspecified class: #{klass_name}"
    end
  end
end

Version data entries

4,621 entries across 4,621 versions & 12 rubygems

Version Path
cybrid_api_id_ruby-0.56.18 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_organization_ruby-0.56.17 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_id_ruby-0.56.17 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_bank_ruby-0.56.17 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_organization_ruby-0.56.16 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_bank_ruby-0.56.16 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_id_ruby-0.56.16 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_id_ruby-0.56.15 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_bank_ruby-0.56.15 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_organization_ruby-0.56.15 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_bank_ruby-0.56.14 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_organization_ruby-0.56.14 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_id_ruby-0.56.14 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_bank_ruby-0.56.13 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_id_ruby-0.56.13 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_organization_ruby-0.56.13 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_id_ruby-0.56.12 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_bank_ruby-0.56.12 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_organization_ruby-0.56.12 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb
cybrid_api_id_ruby-0.56.11 vendor/bundle/ruby/3.1.0/gems/psych-5.0.1/lib/psych/exception.rb