Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains conversion operations that have the potential to fail.
Such conversions are typically used when processing messages received from a DocuSign server instance, which may return values that are incomplete.
Such messages typically include record instances for which only a subset of values are present. The precise subset of values included often depends on which particular operation was invoked, or on the current server state.
The knowledge of when to expect that values will be present (and when to expect that they will be missing) is encapsulated in this module.
Synopsis
- class Parse a b where
- parseM :: forall a b m. MonadThrow m => Parse a b => Show a => Typeable a => Typeable b => a -> m b
- data ParseFailure a b = ParseFailure {
- sourceValue :: a
- sourceType :: TypeRep a
- targetType :: TypeRep b
- parseFailure :: Typeable a => Typeable b => a -> ParseFailure a b
Documentation
class Parse a b where Source #
A class for conversions that have the potential to fail.
Instances
Parse Text Bool Source # | |
Parse Text UUID Source # | |
Parse Text SigningEvent Source # | |
Defined in DocuSign.Client.Types.Parsing | |
Parse Text EnvelopeId Source # | |
Defined in DocuSign.Client.Types.Parsing | |
Parse Text AccountId Source # | |
Parse LoginAccount AccountInfo Source # | |
Defined in DocuSign.Client.Types.Parsing parse :: LoginAccount -> Maybe AccountInfo Source # | |
Parse EnvelopeViews Uri Source # | |
Defined in DocuSign.Client.Types.Parsing | |
Parse EnvelopeSummary EnvelopeId Source # | |
Defined in DocuSign.Client.Types.Parsing parse :: EnvelopeSummary -> Maybe EnvelopeId Source # | |
Parse Authentication [AccountInfo] Source # | |
Defined in DocuSign.Client.Types.Parsing parse :: Authentication -> Maybe [AccountInfo] Source # |
parseM :: forall a b m. MonadThrow m => Parse a b => Show a => Typeable a => Typeable b => a -> m b Source #
Parse a value monadically.
data ParseFailure a b Source #
Thrown when the base API fails to return a value that was expected.
ParseFailure | |
|
Instances
Show a => Show (ParseFailure a b) Source # | |
Defined in DocuSign.Client.Types.Parsing showsPrec :: Int -> ParseFailure a b -> ShowS # show :: ParseFailure a b -> String # showList :: [ParseFailure a b] -> ShowS # | |
(Show a, Typeable a, Typeable b) => Exception (ParseFailure a b) Source # | |
Defined in DocuSign.Client.Types.Parsing toException :: ParseFailure a b -> SomeException # fromException :: SomeException -> Maybe (ParseFailure a b) # displayException :: ParseFailure a b -> String # |
parseFailure :: Typeable a => Typeable b => a -> ParseFailure a b Source #