hwormhole-0.1.0.0: magic-wormhole client

Safe HaskellNone
LanguageHaskell2010

Transit.Internal.Errors

Contents

Description

 
Synopsis

Error

data Error Source #

An Error type for the Magic Wormhole Transit Module

Instances
Show Error Source # 
Instance details

Defined in Transit.Internal.Errors

Methods

showsPrec :: Int -> Error -> ShowS

show :: Error -> String

showList :: [Error] -> ShowS

Exception Error Source # 
Instance details

Defined in Transit.Internal.Errors

Methods

toException :: Error -> SomeException

fromException :: SomeException -> Maybe Error

displayException :: Error -> String

data CommunicationError Source #

Type representing the network protocol errors

Constructors

ConnectionError Text

We could not establish a socket connection.

OfferError Text

Clients could not exchange offer message.

TransitError Text

There was an error in transit protocol exchanges.

Sha256SumError Text

Sender got back a wrong sha256sum from the receiver.

UnknownPeerMessage Text

We could not identify the message from peer.

Instances
Eq CommunicationError Source # 
Instance details

Defined in Transit.Internal.Network

Show CommunicationError Source # 
Instance details

Defined in Transit.Internal.Network

Methods

showsPrec :: Int -> CommunicationError -> ShowS

show :: CommunicationError -> String

showList :: [CommunicationError] -> ShowS

data InvalidHandshake Source #

Error type for the Peer module

Instances
Eq InvalidHandshake Source # 
Instance details

Defined in Transit.Internal.Peer

Show InvalidHandshake Source # 
Instance details

Defined in Transit.Internal.Peer

Methods

showsPrec :: Int -> InvalidHandshake -> ShowS

show :: InvalidHandshake -> String

showList :: [InvalidHandshake] -> ShowS

Exception InvalidHandshake Source # 
Instance details

Defined in Transit.Internal.Peer

Methods

toException :: InvalidHandshake -> SomeException

fromException :: SomeException -> Maybe InvalidHandshake

displayException :: InvalidHandshake -> String

data CryptoError Source #

Error Type for exceptions thrown by the Crypto module

Instances
Eq CryptoError Source # 
Instance details

Defined in Transit.Internal.Crypto

Methods

(==) :: CryptoError -> CryptoError -> Bool

(/=) :: CryptoError -> CryptoError -> Bool

Show CryptoError Source # 
Instance details

Defined in Transit.Internal.Crypto

Methods

showsPrec :: Int -> CryptoError -> ShowS

show :: CryptoError -> String

showList :: [CryptoError] -> ShowS

Exception CryptoError Source # 
Instance details

Defined in Transit.Internal.Crypto

Methods

toException :: CryptoError -> SomeException

fromException :: SomeException -> Maybe CryptoError

displayException :: CryptoError -> String