# 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
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| handlers | Folder | 0755 |
|
|
| json | Folder | 0755 |
|
|
| nodes | Folder | 0755 |
|
|
| visitors | Folder | 0755 |
|
|
| class_loader.rb | File | 1.99 KB | 0644 |
|
| coder.rb | File | 2.05 KB | 0644 |
|
| core_ext.rb | File | 362 B | 0644 |
|
| exception.rb | File | 726 B | 0644 |
|
| handler.rb | File | 7.2 KB | 0644 |
|
| nodes.rb | File | 2.38 KB | 0644 |
|
| omap.rb | File | 75 B | 0644 |
|
| parser.rb | File | 2.03 KB | 0644 |
|
| scalar_scanner.rb | File | 4.69 KB | 0644 |
|
| set.rb | File | 74 B | 0644 |
|
| stream.rb | File | 923 B | 0644 |
|
| streaming.rb | File | 667 B | 0644 |
|
| syntax_error.rb | File | 588 B | 0644 |
|
| tree_builder.rb | File | 2.99 KB | 0644 |
|
| versions.rb | File | 188 B | 0644 |
|
| visitors.rb | File | 254 B | 0644 |
|
| y.rb | File | 190 B | 0644 |
|