Exception: Puppet::Error
Overview
The base class for all Puppet errors. It can wrap another exception
Direct Known Subclasses
AuthStoreError, AuthorizationError, ConfigurationError, ConstantAlreadyDefined, Context::DuplicateRollbackMarkError, Context::StackUnderflow, Context::UndefinedBindingError, Context::UnknownRollbackMarkError, DevError, Puppet::Environments::EnvironmentNotFound, ExecutionFailure, FileSystem::PathPattern::InvalidPattern, Forge::Errors::ForgeError, Indirector::ValidationError, LockError, MissingCommand, Module::Error, Module::Task::Error, ModuleTool::Errors::ModuleToolError, Network::AuthorizationError, Network::FormatHandler::FormatError, Network::HTTP::RedirectionLimitExceededException, ParseError, Parser::Compiler::CatalogValidationError, Pops::Loaders::LoaderError, Pops::Serialization::SerializationError, Pops::Types::TypeAssertionError, Pops::Types::TypeConversionError, Resource::Catalog::DuplicateResourceError, ResourceError, SSL::CertificateAuthority::AutosignCommand::CheckFailure, Settings::SettingsError, SubclassAlreadyDefined, Util::CommandLine::PuppetOptionError, Util::FileType::FileReadError, Util::IniConfig::IniParseError, Util::Windows::Error, Util::Yaml::YamlLoadError
Instance Attribute Summary collapse
-
#original ⇒ Object
Returns the value of attribute original.
Instance Method Summary collapse
-
#initialize(message, original = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, original = nil) ⇒ Error
Returns a new instance of Error.
5 6 7 8 |
# File 'lib/puppet/error.rb', line 5 def initialize(, original=nil) super(Puppet::Util::CharacterEncoding.scrub()) @original = original end |
Instance Attribute Details
#original ⇒ Object
Returns the value of attribute original.
4 5 6 |
# File 'lib/puppet/error.rb', line 4 def original @original end |