enum CrConfig::ConfigException::Type

Defined in:

cr-config/builder_macro.cr

Enum Members

ConfigNotFound = 0

Config name was not populated from any configuration provider

ParseError = 1

Could not parse / transform a provided configuration value into the correct type

ArrayToString = 2

Parsing received an Array object from a provider, but the real type is String. Since string data was likely lost in the conversion to an Array, treat this as an error (instead, the string containing the array should be passed directly to the builder)

CustomValidationError = 3

A custom configuration validator threw an exception

Instance Method Summary

Instance Method Detail

def array_to_string? #

[View source]
def config_not_found? #

[View source]
def custom_validation_error? #

[View source]
def parse_error? #

[View source]