amazonka-appsync-2.0: Amazon AppSync SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AppSync.Types.CodeError

Description

 
Synopsis

Documentation

data CodeError Source #

Describes an AppSync error.

See: newCodeError smart constructor.

Constructors

CodeError' 

Fields

  • errorType :: Maybe Text

    The type of code error.

    Examples include, but aren't limited to: LINT_ERROR, PARSER_ERROR.

  • location :: Maybe CodeErrorLocation

    The line, column, and span location of the error in the code.

  • value :: Maybe Text

    A user presentable error.

    Examples include, but aren't limited to: Parsing error: Unterminated string literal.

Instances

Instances details
FromJSON CodeError Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeError

Generic CodeError Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeError

Associated Types

type Rep CodeError :: Type -> Type #

Read CodeError Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeError

Show CodeError Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeError

NFData CodeError Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeError

Methods

rnf :: CodeError -> () #

Eq CodeError Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeError

Hashable CodeError Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeError

type Rep CodeError Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeError

type Rep CodeError = D1 ('MetaData "CodeError" "Amazonka.AppSync.Types.CodeError" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "CodeError'" 'PrefixI 'True) (S1 ('MetaSel ('Just "errorType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CodeErrorLocation)) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newCodeError :: CodeError Source #

Create a value of CodeError with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:errorType:CodeError', codeError_errorType - The type of code error.

Examples include, but aren't limited to: LINT_ERROR, PARSER_ERROR.

$sel:location:CodeError', codeError_location - The line, column, and span location of the error in the code.

$sel:value:CodeError', codeError_value - A user presentable error.

Examples include, but aren't limited to: Parsing error: Unterminated string literal.

codeError_errorType :: Lens' CodeError (Maybe Text) Source #

The type of code error.

Examples include, but aren't limited to: LINT_ERROR, PARSER_ERROR.

codeError_location :: Lens' CodeError (Maybe CodeErrorLocation) Source #

The line, column, and span location of the error in the code.

codeError_value :: Lens' CodeError (Maybe Text) Source #

A user presentable error.

Examples include, but aren't limited to: Parsing error: Unterminated string literal.