capnp-0.5.0.0: Cap'n Proto for Haskell

Safe HaskellSafe
LanguageHaskell2010

Capnp.Errors

Description

 
Synopsis

Documentation

data Error Source #

An error that may occur when processing a capnproto message.

Constructors

BoundsError

A BoundsError indicates an attempt to access an illegal index index within a sequence of length maxIndex.

Fields

RecursionLimitError

A RecursionLimitError indicates that the recursion depth limit was exceeded.

TraversalLimitError

A TraversalLimitError indicates that the traversal limit was exceeded.

InvalidDataError String

An InvalidDataError indicates that a part of a message being parsed was malformed. The argument to the data constructor is a human-readable error message.

SizeError

A SizeError indicates that an operation would have resulted in a message that violated the library's limit on either segment size or number of segments.

SchemaViolationError String

A SchemaViolationError indicates that part of the message does not match the schema. The argument to the data construtor is a human-readable error message.

InvalidUtf8Error UnicodeException

An InvalidUtf8Error indicates that a text value in the message was invalid utf8.

Note well: Most parts of the library don't actually check for valid utf8 -- don't assume the check is made unless an interface says it is.

Instances
Eq Error Source # 
Instance details

Defined in Capnp.Errors

Methods

(==) :: Error -> Error -> Bool #

(/=) :: Error -> Error -> Bool #

Show Error Source # 
Instance details

Defined in Capnp.Errors

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

Exception Error Source # 
Instance details

Defined in Capnp.Errors