Exception: Aspera::Cli::SchemaRequest

Inherits:
Error
  • Object
show all
Defined in:
lib/aspera/cli/error.rb

Overview

Exception raised when schema is asked (help)

Constant Summary collapse

KEYWORD =

Value of option or argument that requests its schema

'help'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, name, schema_path) ⇒ SchemaRequest

Returns a new instance of SchemaRequest.

Parameters:

  • type (Symbol) —

    :argument or :option

  • name (String) —

    name of the option/argument

  • schema_path (String, nil) —

    path to schema file, or nil if not available



109
110
111
112
# File 'lib/aspera/cli/error.rb', line 109

def initialize(type, name, schema_path)
  super("#{type}: #{name}")
  @path = schema_path
end

Instance Attribute Details

#path ⇒ String? (readonly)

Returns path to schema file.

Returns:

  • (String, nil) —

    path to schema file



104
105
106
# File 'lib/aspera/cli/error.rb', line 104

def path
  @path
end