Exception: Toys::ContextualError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/toys/errors.rb

Overview

A wrapper exception used to provide user-oriented context for an exception

Instance Attribute Summary collapse

Instance Attribute Details

Returns the value of attribute banner.



81
82
83
# File 'lib/toys/errors.rb', line 81

def banner
  @banner
end

#causeObject (readonly)

Returns the value of attribute cause.



80
81
82
# File 'lib/toys/errors.rb', line 80

def cause
  @cause
end

#config_lineObject

Returns the value of attribute config_line.



84
85
86
# File 'lib/toys/errors.rb', line 84

def config_line
  @config_line
end

#config_pathObject

Returns the value of attribute config_path.



83
84
85
# File 'lib/toys/errors.rb', line 83

def config_path
  @config_path
end

#tool_argsObject

Returns the value of attribute tool_args.



86
87
88
# File 'lib/toys/errors.rb', line 86

def tool_args
  @tool_args
end

#tool_nameObject

Returns the value of attribute tool_name.



85
86
87
# File 'lib/toys/errors.rb', line 85

def tool_name
  @tool_name
end