| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AppSync.Types.CodeError
Description
Synopsis
Documentation
Describes an AppSync error.
See: newCodeError smart constructor.
Constructors
| CodeError' | |
Fields
| |
Instances
| FromJSON CodeError Source # | |
| Generic CodeError Source # | |
| Read CodeError Source # | |
| Show CodeError Source # | |
| NFData CodeError Source # | |
Defined in Amazonka.AppSync.Types.CodeError | |
| Eq CodeError Source # | |
| Hashable CodeError Source # | |
Defined in Amazonka.AppSync.Types.CodeError | |
| type Rep CodeError Source # | |
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.