Exception: Hocon::ConfigError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hocon/config_error.rb

Defined Under Namespace

Classes: ConfigBadPathError, ConfigBugOrBrokenError, ConfigIOError, ConfigMissingError, ConfigNotResolvedError, ConfigNullError, ConfigParseError, ConfigWrongTypeError, UnresolvedSubstitutionError

Instance Method Summary collapse

Constructor Details

#initialize(origin, message, cause) ⇒ ConfigError

Returns a new instance of ConfigError.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/hocon/config_error.rb', line 6

def initialize(origin, message, cause)
  msg =
    if origin.nil?
      message
    else
      "#{origin.description}: #{message}"
    end
  super(msg)
  @origin = origin
  @cause = cause
end