gi-json-1.0.5: JSON GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Json.Enums

Description

 
Synopsis

Enumerations

NodeType

data NodeType Source #

Indicates the content of a node.

Constructors

NodeTypeObject

The node contains a JSON object

NodeTypeArray

The node contains a JSON array

NodeTypeValue

The node contains a fundamental type

NodeTypeNull

Special type, for nodes containing null

AnotherNodeType Int

Catch-all for unknown values

Instances

Instances details
Enum NodeType Source # 
Instance details

Defined in GI.Json.Enums

Show NodeType Source # 
Instance details

Defined in GI.Json.Enums

Eq NodeType Source # 
Instance details

Defined in GI.Json.Enums

Ord NodeType Source # 
Instance details

Defined in GI.Json.Enums

BoxedEnum NodeType Source # 
Instance details

Defined in GI.Json.Enums

TypedObject NodeType Source # 
Instance details

Defined in GI.Json.Enums

Methods

glibType :: IO GType

HasParentTypes NodeType Source # 
Instance details

Defined in GI.Json.Enums

type ParentTypes NodeType Source # 
Instance details

Defined in GI.Json.Enums

type ParentTypes NodeType = '[] :: [Type]

ParserError

data ParserError Source #

Error codes for JSON_PARSER_ERROR.

This enumeration can be extended at later date

Constructors

ParserErrorParse

parse error

ParserErrorTrailingComma

unexpected trailing comma

ParserErrorMissingComma

expected comma

ParserErrorMissingColon

expected colon

ParserErrorInvalidBareword

invalid bareword

ParserErrorEmptyMemberName

empty member name (Since: 0.16)

ParserErrorInvalidData

invalid data (Since: 0.18)

ParserErrorUnknown

unknown error

AnotherParserError Int

Catch-all for unknown values

Instances

Instances details
Enum ParserError Source # 
Instance details

Defined in GI.Json.Enums

Show ParserError Source # 
Instance details

Defined in GI.Json.Enums

Eq ParserError Source # 
Instance details

Defined in GI.Json.Enums

Ord ParserError Source # 
Instance details

Defined in GI.Json.Enums

BoxedEnum ParserError Source # 
Instance details

Defined in GI.Json.Enums

TypedObject ParserError Source # 
Instance details

Defined in GI.Json.Enums

Methods

glibType :: IO GType

GErrorClass ParserError Source # 
Instance details

Defined in GI.Json.Enums

HasParentTypes ParserError Source # 
Instance details

Defined in GI.Json.Enums

type ParentTypes ParserError Source # 
Instance details

Defined in GI.Json.Enums

type ParentTypes ParserError = '[] :: [Type]

catchParserError :: IO a -> (ParserError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type ParserError. This is a specialized version of catchGErrorJustDomain.

handleParserError :: (ParserError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type ParserError. This is a specialized version of handleGErrorJustDomain.

PathError

data PathError Source #

Error codes for JSON_PATH_ERROR.

This enumeration can be extended at later date

Since: 0.14

Constructors

PathErrorQuery

Invalid query

AnotherPathError Int

Catch-all for unknown values

Instances

Instances details
Enum PathError Source # 
Instance details

Defined in GI.Json.Enums

Show PathError Source # 
Instance details

Defined in GI.Json.Enums

Eq PathError Source # 
Instance details

Defined in GI.Json.Enums

Ord PathError Source # 
Instance details

Defined in GI.Json.Enums

BoxedEnum PathError Source # 
Instance details

Defined in GI.Json.Enums

TypedObject PathError Source # 
Instance details

Defined in GI.Json.Enums

Methods

glibType :: IO GType

GErrorClass PathError Source # 
Instance details

Defined in GI.Json.Enums

HasParentTypes PathError Source # 
Instance details

Defined in GI.Json.Enums

type ParentTypes PathError Source # 
Instance details

Defined in GI.Json.Enums

type ParentTypes PathError = '[] :: [Type]

catchPathError :: IO a -> (PathError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type PathError. This is a specialized version of catchGErrorJustDomain.

handlePathError :: (PathError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type PathError. This is a specialized version of handleGErrorJustDomain.

ReaderError

data ReaderError Source #

Error codes for JSON_READER_ERROR.

This enumeration can be extended at later date

Since: 0.12

Constructors

ReaderErrorNoArray

No array found at the current position

ReaderErrorInvalidIndex

Index out of bounds

ReaderErrorNoObject

No object found at the current position

ReaderErrorInvalidMember

Member not found

ReaderErrorInvalidNode

No valid node found at the current position

ReaderErrorNoValue

The node at the current position does not hold a value

ReaderErrorInvalidType

The node at the current position does not hold a value of the desired type

AnotherReaderError Int

Catch-all for unknown values

Instances

Instances details
Enum ReaderError Source # 
Instance details

Defined in GI.Json.Enums

Show ReaderError Source # 
Instance details

Defined in GI.Json.Enums

Eq ReaderError Source # 
Instance details

Defined in GI.Json.Enums

Ord ReaderError Source # 
Instance details

Defined in GI.Json.Enums

BoxedEnum ReaderError Source # 
Instance details

Defined in GI.Json.Enums

TypedObject ReaderError Source # 
Instance details

Defined in GI.Json.Enums

Methods

glibType :: IO GType

GErrorClass ReaderError Source # 
Instance details

Defined in GI.Json.Enums

HasParentTypes ReaderError Source # 
Instance details

Defined in GI.Json.Enums

type ParentTypes ReaderError Source # 
Instance details

Defined in GI.Json.Enums

type ParentTypes ReaderError = '[] :: [Type]

catchReaderError :: IO a -> (ReaderError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type ReaderError. This is a specialized version of catchGErrorJustDomain.

handleReaderError :: (ReaderError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type ReaderError. This is a specialized version of handleGErrorJustDomain.