Class: Cuprum::Cli::Errors::Files::MissingParameter
- Parent Namespace
- Cuprum::Cli::Errors::Files
- Inherited Classes
- Cuprum::Cli::Errors::Files::TemplateError
>
Cuprum::Error
>
Object
- Defined In
- lib/cuprum/cli/errors/files/missing_parameter.rb
Table Of Contents
Overview
Error returned when a required parameter is missing when rendering content.
Back To Top
Constants
TYPE
= 'cuprum.cli.errors.files.missing_parameter'
Short string used to identify the type of error.
Back To Top
Constructor
#initialize(parameter_name:, details: nil, format: nil, message: nil, template_name: nil) => MissingParameter
Parameters
- parameter_name (String, Symbol) — the name of the missing parameter.
- details (String) — additional information about the error.
- format (String) — the content format.
- message (String) — an optional message to display.
- template_name (String) — the name of the rendered content, if any,
Returns
- (MissingParameter) — a new instance of MissingParameter
Back To Top
Instance Attributes
#details => String (readonly)
- Inherited From
- Cuprum::Cli::Errors::Files::TemplateError
Returns
- (String) — additional information about the error.
- (String) — the content format.
#parameter_name => String, Symbol (readonly)
Returns
- (String, Symbol) — the name of the missing parameter.
#template_name => String (readonly)
- Inherited From
- Cuprum::Cli::Errors::Files::TemplateError
Returns
- (String) — the name of the rendered content, if any,
Back To Top
Instance Methods
Back To Top
Back to
Documentation |
Reference
|
Cuprum
|
Cuprum::Cli
|
Cuprum::Cli::Errors
|
Cuprum::Cli::Errors::Files