etc-0.4.1.0: Declarative configuration spec for Haskell projects

Safe HaskellNone
LanguageHaskell2010

System.Etc.Internal.Errors

Synopsis

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 

Fields

Instances
Eq InvalidConfigKeyPath Source # 
Instance details

Defined in System.Etc.Internal.Errors

Read InvalidConfigKeyPath Source # 
Instance details

Defined in System.Etc.Internal.Errors

Show InvalidConfigKeyPath Source # 
Instance details

Defined in System.Etc.Internal.Errors

Generic InvalidConfigKeyPath Source # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep InvalidConfigKeyPath :: * -> * #

Exception InvalidConfigKeyPath Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep InvalidConfigKeyPath Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep InvalidConfigKeyPath = D1 (MetaData "InvalidConfigKeyPath" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" True) (C1 (MetaCons "InvalidConfigKeyPath" PrefixI True) (S1 (MetaSel (Just "inputKeys") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text])))

data ConfigValueParserFailed Source #

Thrown when there is a type mismatch in a JSON parser given via getConfigWith

Constructors

ConfigValueParserFailed 

Fields

Instances
Eq ConfigValueParserFailed Source # 
Instance details

Defined in System.Etc.Internal.Errors

Read ConfigValueParserFailed Source # 
Instance details

Defined in System.Etc.Internal.Errors

Show ConfigValueParserFailed Source # 
Instance details

Defined in System.Etc.Internal.Errors

Generic ConfigValueParserFailed Source # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep ConfigValueParserFailed :: * -> * #

Exception ConfigValueParserFailed Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigValueParserFailed Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigValueParserFailed = D1 (MetaData "ConfigValueParserFailed" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" False) (C1 (MetaCons "ConfigValueParserFailed" PrefixI True) (S1 (MetaSel (Just "inputKeys") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]) :*: S1 (MetaSel (Just "parserErrorMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))

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
Eq UnknownConfigKeyFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Read UnknownConfigKeyFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Show UnknownConfigKeyFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Generic UnknownConfigKeyFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep UnknownConfigKeyFound :: * -> * #

Exception UnknownConfigKeyFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep UnknownConfigKeyFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep UnknownConfigKeyFound = D1 (MetaData "UnknownConfigKeyFound" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" False) (C1 (MetaCons "UnknownConfigKeyFound" PrefixI True) (S1 (MetaSel (Just "parentKeys") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]) :*: (S1 (MetaSel (Just "keyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "siblingKeys") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))))

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
Eq SubConfigEntryExpected Source # 
Instance details

Defined in System.Etc.Internal.Errors

Read SubConfigEntryExpected Source # 
Instance details

Defined in System.Etc.Internal.Errors

Show SubConfigEntryExpected Source # 
Instance details

Defined in System.Etc.Internal.Errors

Generic SubConfigEntryExpected Source # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep SubConfigEntryExpected :: * -> * #

Exception SubConfigEntryExpected Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep SubConfigEntryExpected Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep SubConfigEntryExpected = D1 (MetaData "SubConfigEntryExpected" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" False) (C1 (MetaCons "SubConfigEntryExpected" PrefixI True) (S1 (MetaSel (Just "keyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "configValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Value)))

data ConfigValueTypeMismatchFound Source #

This error is thrown when a type mismatch is found in a raw value when calling resolveFile

Constructors

ConfigValueTypeMismatchFound 

Fields

Instances
Eq ConfigValueTypeMismatchFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Read ConfigValueTypeMismatchFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Show ConfigValueTypeMismatchFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Generic ConfigValueTypeMismatchFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep ConfigValueTypeMismatchFound :: * -> * #

Exception ConfigValueTypeMismatchFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigValueTypeMismatchFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigValueTypeMismatchFound = D1 (MetaData "ConfigValueTypeMismatchFound" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" False) (C1 (MetaCons "ConfigValueTypeMismatchFound" PrefixI True) (S1 (MetaSel (Just "keyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "configValueEntry") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Value) :*: S1 (MetaSel (Just "configValueEntryType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ConfigValueType))))

newtype ConfigurationFileNotFound Source #

Thrown when a specified configuration file is not found in the system

Constructors

ConfigurationFileNotFound 

Fields

Instances
Eq ConfigurationFileNotFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Read ConfigurationFileNotFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Show ConfigurationFileNotFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Generic ConfigurationFileNotFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep ConfigurationFileNotFound :: * -> * #

Exception ConfigurationFileNotFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigurationFileNotFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigurationFileNotFound = D1 (MetaData "ConfigurationFileNotFound" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" True) (C1 (MetaCons "ConfigurationFileNotFound" PrefixI True) (S1 (MetaSel (Just "configFilepath") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

newtype UnsupportedFileExtensionGiven Source #

Thrown when an input configuration file contains an unsupported file extension

Constructors

UnsupportedFileExtensionGiven 

Fields

Instances
Eq UnsupportedFileExtensionGiven Source # 
Instance details

Defined in System.Etc.Internal.Errors

Read UnsupportedFileExtensionGiven Source # 
Instance details

Defined in System.Etc.Internal.Errors

Show UnsupportedFileExtensionGiven Source # 
Instance details

Defined in System.Etc.Internal.Errors

Generic UnsupportedFileExtensionGiven Source # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep UnsupportedFileExtensionGiven :: * -> * #

Exception UnsupportedFileExtensionGiven Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep UnsupportedFileExtensionGiven Source # 
Instance details

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
Eq ConfigInvalidSyntaxFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Read ConfigInvalidSyntaxFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Show ConfigInvalidSyntaxFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Generic ConfigInvalidSyntaxFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep ConfigInvalidSyntaxFound :: * -> * #

Exception ConfigInvalidSyntaxFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigInvalidSyntaxFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigInvalidSyntaxFound = D1 (MetaData "ConfigInvalidSyntaxFound" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" False) (C1 (MetaCons "ConfigInvalidSyntaxFound" PrefixI True) (S1 (MetaSel (Just "configFilepath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "parserErrorMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))

data SpecInvalidSyntaxFound Source #

Thrown when an configuration spec file contains invalid syntax

Constructors

SpecInvalidSyntaxFound 

Fields

Instances
Eq SpecInvalidSyntaxFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Read SpecInvalidSyntaxFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Show SpecInvalidSyntaxFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Generic SpecInvalidSyntaxFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep SpecInvalidSyntaxFound :: * -> * #

Exception SpecInvalidSyntaxFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep SpecInvalidSyntaxFound Source # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep SpecInvalidSyntaxFound = D1 (MetaData "SpecInvalidSyntaxFound" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" False) (C1 (MetaCons "SpecInvalidSyntaxFound" PrefixI True) (S1 (MetaSel (Just "specFilepath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "parseErrorMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))