| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Transit.Internal.Errors
Contents
Description
Synopsis
- data Error
- data CommunicationError
- = ConnectionError Text
- | OfferError Text
- | TransitError Text
- | Sha256SumError Text
- | UnknownPeerMessage Text
- data InvalidHandshake
- data CryptoError
Error
An Error type for the Magic Wormhole Transit Module
Instances
| Show Error Source # | |
| Exception Error Source # | |
Defined in Transit.Internal.Errors Methods toException :: Error -> SomeException fromException :: SomeException -> Maybe Error displayException :: Error -> String | |
| MonadError Error App | |
Defined in Transit.Internal.App | |
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 # | |
Defined in Transit.Internal.Network Methods (==) :: CommunicationError -> CommunicationError -> Bool (/=) :: CommunicationError -> CommunicationError -> Bool | |
| Show CommunicationError Source # | |
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 # | |
Defined in Transit.Internal.Peer Methods (==) :: InvalidHandshake -> InvalidHandshake -> Bool (/=) :: InvalidHandshake -> InvalidHandshake -> Bool | |
| Show InvalidHandshake Source # | |
Defined in Transit.Internal.Peer Methods showsPrec :: Int -> InvalidHandshake -> ShowS show :: InvalidHandshake -> String showList :: [InvalidHandshake] -> ShowS | |
| Exception InvalidHandshake Source # | |
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 # | |
Defined in Transit.Internal.Crypto | |
| Show CryptoError Source # | |
Defined in Transit.Internal.Crypto Methods showsPrec :: Int -> CryptoError -> ShowS show :: CryptoError -> String showList :: [CryptoError] -> ShowS | |
| Exception CryptoError Source # | |
Defined in Transit.Internal.Crypto Methods toException :: CryptoError -> SomeException fromException :: SomeException -> Maybe CryptoError displayException :: CryptoError -> String | |