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.



63
64
65
# File 'lib/toys/errors.rb', line 63

def banner
  @banner
end

#causeObject (readonly)

Returns the value of attribute cause.



62
63
64
# File 'lib/toys/errors.rb', line 62

def cause
  @cause
end

#config_lineObject

Returns the value of attribute config_line.



66
67
68
# File 'lib/toys/errors.rb', line 66

def config_line
  @config_line
end

#config_pathObject

Returns the value of attribute config_path.



65
66
67
# File 'lib/toys/errors.rb', line 65

def config_path
  @config_path
end

#tool_argsObject

Returns the value of attribute tool_args.



68
69
70
# File 'lib/toys/errors.rb', line 68

def tool_args
  @tool_args
end

#tool_nameObject

Returns the value of attribute tool_name.



67
68
69
# File 'lib/toys/errors.rb', line 67

def tool_name
  @tool_name
end