Module: Evilution::MCP::InfoTool::ErrorMapper Private

Defined in:
lib/evilution/mcp/info_tool/error_mapper.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.type_for(error) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
11
12
13
14
# File 'lib/evilution/mcp/info_tool/error_mapper.rb', line 8

def type_for(error)
  case error
  when Evilution::ConfigError then "config_error"
  when Evilution::ParseError  then "parse_error"
  else "runtime_error"
  end
end