Exception: Toys::ContextualError

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

Overview

Defined in the toys-core gem

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.



71
72
73
# File 'toys-core/lib/toys/errors.rb', line 71

def banner
  @banner
end

#causeObject (readonly)

Returns the value of attribute cause.



70
71
72
# File 'toys-core/lib/toys/errors.rb', line 70

def cause
  @cause
end

#config_lineObject

Returns the value of attribute config_line.



74
75
76
# File 'toys-core/lib/toys/errors.rb', line 74

def config_line
  @config_line
end

#config_pathObject

Returns the value of attribute config_path.



73
74
75
# File 'toys-core/lib/toys/errors.rb', line 73

def config_path
  @config_path
end

#tool_argsObject

Returns the value of attribute tool_args.



76
77
78
# File 'toys-core/lib/toys/errors.rb', line 76

def tool_args
  @tool_args
end

#tool_nameObject

Returns the value of attribute tool_name.



75
76
77
# File 'toys-core/lib/toys/errors.rb', line 75

def tool_name
  @tool_name
end