Exception: Puppet::Error
Overview
The base class for all Puppet errors. It can wrap another exception
Direct Known Subclasses
ConstantAlreadyDefined, Context::DuplicateRollbackMarkError, Context::StackUnderflow, Context::UndefinedBindingError, Context::UnknownRollbackMarkError, DevError, Puppet::Environments::EnvironmentNotFound, ErrorWithData, ExecutionFailure, FileSystem::PathPattern::InvalidPattern, Forge::Errors::ForgeError, HTTP::HTTPError, Indirector::ValidationError, LockError, MissingCommand, Module::Error, Module::Plan::Error, Module::Task::Error, ModuleTool::Errors::ModuleToolError, 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::SSLError, 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.
8 9 10 11 |
# File 'lib/puppet/error.rb', line 8 def initialize(, original = nil) super(.scrub) @original = original end |
Instance Attribute Details
#original ⇒ Object
Returns the value of attribute original.
6 7 8 |
# File 'lib/puppet/error.rb', line 6 def original @original end |