Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 toException :: Error -> SomeException fromException :: SomeException -> Maybe Error displayException :: Error -> String | |
MonadError Error App | |
Defined in Transit.Internal.App throwError :: Error -> App a catchError :: App a -> (Error -> App a) -> App a |
data CommunicationError Source #
Type representing the network protocol errors
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 (==) :: CommunicationError -> CommunicationError -> Bool (/=) :: CommunicationError -> CommunicationError -> Bool | |
Show CommunicationError Source # | |
Defined in Transit.Internal.Network 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 (==) :: InvalidHandshake -> InvalidHandshake -> Bool (/=) :: InvalidHandshake -> InvalidHandshake -> Bool | |
Show InvalidHandshake Source # | |
Defined in Transit.Internal.Peer showsPrec :: Int -> InvalidHandshake -> ShowS show :: InvalidHandshake -> String showList :: [InvalidHandshake] -> ShowS | |
Exception InvalidHandshake Source # | |
Defined in Transit.Internal.Peer 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 (==) :: CryptoError -> CryptoError -> Bool (/=) :: CryptoError -> CryptoError -> Bool | |
Show CryptoError Source # | |
Defined in Transit.Internal.Crypto showsPrec :: Int -> CryptoError -> ShowS show :: CryptoError -> String showList :: [CryptoError] -> ShowS | |
Exception CryptoError Source # | |
Defined in Transit.Internal.Crypto toException :: CryptoError -> SomeException fromException :: SomeException -> Maybe CryptoError displayException :: CryptoError -> String |