etc-0.4.1.0: Declarative configuration spec for Haskell projects

Safe HaskellNone
LanguageHaskell2010

System.Etc.Internal.Errors

Synopsis

Documentation

newtype InvalidConfigKeyPath #

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 # 
Instance details

Defined in System.Etc.Internal.Errors

Read InvalidConfigKeyPath # 
Instance details

Defined in System.Etc.Internal.Errors

Show InvalidConfigKeyPath # 
Instance details

Defined in System.Etc.Internal.Errors

Generic InvalidConfigKeyPath # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep InvalidConfigKeyPath :: Type -> Type #

Exception InvalidConfigKeyPath # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep InvalidConfigKeyPath # 
Instance details

Defined in System.Etc.Internal.Errors

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

data ConfigValueParserFailed #

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

Constructors

ConfigValueParserFailed 

Fields

Instances
Eq ConfigValueParserFailed # 
Instance details

Defined in System.Etc.Internal.Errors

Read ConfigValueParserFailed # 
Instance details

Defined in System.Etc.Internal.Errors

Show ConfigValueParserFailed # 
Instance details

Defined in System.Etc.Internal.Errors

Generic ConfigValueParserFailed # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep ConfigValueParserFailed :: Type -> Type #

Exception ConfigValueParserFailed # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigValueParserFailed # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigValueParserFailed = D1 (MetaData "ConfigValueParserFailed" "System.Etc.Internal.Errors" "etc-0.4.1.0-1rVDgN3Dze9Irlk2jWGFiB" 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 #

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 # 
Instance details

Defined in System.Etc.Internal.Errors

Read UnknownConfigKeyFound # 
Instance details

Defined in System.Etc.Internal.Errors

Show UnknownConfigKeyFound # 
Instance details

Defined in System.Etc.Internal.Errors

Generic UnknownConfigKeyFound # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep UnknownConfigKeyFound :: Type -> Type #

Exception UnknownConfigKeyFound # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep UnknownConfigKeyFound # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep UnknownConfigKeyFound = D1 (MetaData "UnknownConfigKeyFound" "System.Etc.Internal.Errors" "etc-0.4.1.0-1rVDgN3Dze9Irlk2jWGFiB" 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 #

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 # 
Instance details

Defined in System.Etc.Internal.Errors

Read SubConfigEntryExpected # 
Instance details

Defined in System.Etc.Internal.Errors

Show SubConfigEntryExpected # 
Instance details

Defined in System.Etc.Internal.Errors

Generic SubConfigEntryExpected # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep SubConfigEntryExpected :: Type -> Type #

Exception SubConfigEntryExpected # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep SubConfigEntryExpected # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep SubConfigEntryExpected = D1 (MetaData "SubConfigEntryExpected" "System.Etc.Internal.Errors" "etc-0.4.1.0-1rVDgN3Dze9Irlk2jWGFiB" 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 #

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

Constructors

ConfigValueTypeMismatchFound 

Fields

Instances
Eq ConfigValueTypeMismatchFound # 
Instance details

Defined in System.Etc.Internal.Errors

Read ConfigValueTypeMismatchFound # 
Instance details

Defined in System.Etc.Internal.Errors

Show ConfigValueTypeMismatchFound # 
Instance details

Defined in System.Etc.Internal.Errors

Generic ConfigValueTypeMismatchFound # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep ConfigValueTypeMismatchFound :: Type -> Type #

Exception ConfigValueTypeMismatchFound # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigValueTypeMismatchFound # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigValueTypeMismatchFound = D1 (MetaData "ConfigValueTypeMismatchFound" "System.Etc.Internal.Errors" "etc-0.4.1.0-1rVDgN3Dze9Irlk2jWGFiB" 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 #

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

Constructors

ConfigurationFileNotFound 

Fields

Instances
Eq ConfigurationFileNotFound # 
Instance details

Defined in System.Etc.Internal.Errors

Read ConfigurationFileNotFound # 
Instance details

Defined in System.Etc.Internal.Errors

Show ConfigurationFileNotFound # 
Instance details

Defined in System.Etc.Internal.Errors

Generic ConfigurationFileNotFound # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep ConfigurationFileNotFound :: Type -> Type #

Exception ConfigurationFileNotFound # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigurationFileNotFound # 
Instance details

Defined in System.Etc.Internal.Errors

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

newtype UnsupportedFileExtensionGiven #

Thrown when an input configuration file contains an unsupported file extension

Constructors

UnsupportedFileExtensionGiven 

Fields

Instances
Eq UnsupportedFileExtensionGiven # 
Instance details

Defined in System.Etc.Internal.Errors

Read UnsupportedFileExtensionGiven # 
Instance details

Defined in System.Etc.Internal.Errors

Show UnsupportedFileExtensionGiven # 
Instance details

Defined in System.Etc.Internal.Errors

Generic UnsupportedFileExtensionGiven # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep UnsupportedFileExtensionGiven :: Type -> Type #

Exception UnsupportedFileExtensionGiven # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep UnsupportedFileExtensionGiven # 
Instance details

Defined in System.Etc.Internal.Errors

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

data ConfigInvalidSyntaxFound #

Thrown when an input configuration file contains invalid syntax

Constructors

ConfigInvalidSyntaxFound 

Fields

Instances
Eq ConfigInvalidSyntaxFound # 
Instance details

Defined in System.Etc.Internal.Errors

Read ConfigInvalidSyntaxFound # 
Instance details

Defined in System.Etc.Internal.Errors

Show ConfigInvalidSyntaxFound # 
Instance details

Defined in System.Etc.Internal.Errors

Generic ConfigInvalidSyntaxFound # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep ConfigInvalidSyntaxFound :: Type -> Type #

Exception ConfigInvalidSyntaxFound # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigInvalidSyntaxFound # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep ConfigInvalidSyntaxFound = D1 (MetaData "ConfigInvalidSyntaxFound" "System.Etc.Internal.Errors" "etc-0.4.1.0-1rVDgN3Dze9Irlk2jWGFiB" 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 #

Thrown when an configuration spec file contains invalid syntax

Constructors

SpecInvalidSyntaxFound 

Fields

Instances
Eq SpecInvalidSyntaxFound # 
Instance details

Defined in System.Etc.Internal.Errors

Read SpecInvalidSyntaxFound # 
Instance details

Defined in System.Etc.Internal.Errors

Show SpecInvalidSyntaxFound # 
Instance details

Defined in System.Etc.Internal.Errors

Generic SpecInvalidSyntaxFound # 
Instance details

Defined in System.Etc.Internal.Errors

Associated Types

type Rep SpecInvalidSyntaxFound :: Type -> Type #

Exception SpecInvalidSyntaxFound # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep SpecInvalidSyntaxFound # 
Instance details

Defined in System.Etc.Internal.Errors

type Rep SpecInvalidSyntaxFound = D1 (MetaData "SpecInvalidSyntaxFound" "System.Etc.Internal.Errors" "etc-0.4.1.0-1rVDgN3Dze9Irlk2jWGFiB" 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)))