Exception: Gem::SafeMarshal::Visitors::ToRuby::UnpermittedClassError

Inherits:
Error
  • Object
show all
Defined in:
lib/rubygems/safe_marshal/visitors/to_ruby.rb

Instance Method Summary collapse

Constructor Details

#initialize(name:, stack:) ⇒ UnpermittedClassError

Returns a new instance of UnpermittedClassError.



371
372
373
374
375
# File 'lib/rubygems/safe_marshal/visitors/to_ruby.rb', line 371

def initialize(name:, stack:)
  @name = name
  @stack = stack
  super "Attempting to load unpermitted class #{name.inspect} @ #{stack.join "."}"
end