Safe Haskell | None |
---|---|
Language | Haskell2010 |
System.Etc.Internal.Errors
Synopsis
- newtype InvalidConfigKeyPath = InvalidConfigKeyPath {}
- data ConfigValueParserFailed = ConfigValueParserFailed {
- inputKeys :: ![Text]
- parserErrorMessage :: !Text
- data UnknownConfigKeyFound = UnknownConfigKeyFound {
- parentKeys :: ![Text]
- keyName :: !Text
- siblingKeys :: ![Text]
- data SubConfigEntryExpected = SubConfigEntryExpected {
- keyName :: !Text
- configValue :: !Value
- data ConfigValueTypeMismatchFound = ConfigValueTypeMismatchFound {}
- newtype ConfigurationFileNotFound = ConfigurationFileNotFound {}
- newtype UnsupportedFileExtensionGiven = UnsupportedFileExtensionGiven {}
- data ConfigInvalidSyntaxFound = ConfigInvalidSyntaxFound {
- configFilepath :: !Text
- parserErrorMessage :: !Text
- data SpecInvalidSyntaxFound = SpecInvalidSyntaxFound {
- specFilepath :: !(Maybe Text)
- parseErrorMessage :: !Text
Documentation
newtype InvalidConfigKeyPath Source #
Thrown when calling the getConfig
or getConfigWith
functions on a key
that does not exist in the configuration spec
Constructors
InvalidConfigKeyPath | |
Instances
data ConfigValueParserFailed Source #
Thrown when there is a type mismatch in a JSON parser given via
getConfigWith
Constructors
ConfigValueParserFailed | |
Fields
|
Instances
data UnknownConfigKeyFound Source #
Thrown when the resolveFile
function finds a key on a configuration
file that is not specified in the given configuration spec
Constructors
UnknownConfigKeyFound | |
Fields
|
Instances
data SubConfigEntryExpected Source #
Thrown when there is a type mismatch on a configuration entry, specifically, when there is a raw value instead of a sub-config in a configuration file
Constructors
SubConfigEntryExpected | |
Fields
|
Instances
data ConfigValueTypeMismatchFound Source #
This error is thrown when a type mismatch is found in a raw value when
calling resolveFile
Constructors
ConfigValueTypeMismatchFound | |
Fields
|
Instances
newtype ConfigurationFileNotFound Source #
Thrown when a specified configuration file is not found in the system
Constructors
ConfigurationFileNotFound | |
Fields
|
Instances
newtype UnsupportedFileExtensionGiven Source #
Thrown when an input configuration file contains an unsupported file extension
Constructors
UnsupportedFileExtensionGiven | |
Fields
|
Instances
Eq UnsupportedFileExtensionGiven Source # | |
Defined in System.Etc.Internal.Errors | |
Read UnsupportedFileExtensionGiven Source # | |
Show UnsupportedFileExtensionGiven Source # | |
Defined in System.Etc.Internal.Errors Methods showsPrec :: Int -> UnsupportedFileExtensionGiven -> ShowS # show :: UnsupportedFileExtensionGiven -> String # showList :: [UnsupportedFileExtensionGiven] -> ShowS # | |
Generic UnsupportedFileExtensionGiven Source # | |
Defined in System.Etc.Internal.Errors Associated Types type Rep UnsupportedFileExtensionGiven :: * -> * # | |
Exception UnsupportedFileExtensionGiven Source # | |
type Rep UnsupportedFileExtensionGiven Source # | |
Defined in System.Etc.Internal.Errors type Rep UnsupportedFileExtensionGiven = D1 (MetaData "UnsupportedFileExtensionGiven" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" True) (C1 (MetaCons "UnsupportedFileExtensionGiven" PrefixI True) (S1 (MetaSel (Just "configFilepath") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) |
data ConfigInvalidSyntaxFound Source #
Thrown when an input configuration file contains invalid syntax
Constructors
ConfigInvalidSyntaxFound | |
Fields
|
Instances
data SpecInvalidSyntaxFound Source #
Thrown when an configuration spec file contains invalid syntax
Constructors
SpecInvalidSyntaxFound | |
Fields
|