Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ContractError
- = WalletContractError WalletAPIError
- | ChainIndexContractError Text ChainIndexResponse
- | ConstraintResolutionContractError MkTxError
- | ToCardanoConvertContractError ToCardanoError
- | ResumableContractError MatchingError
- | CCheckpointContractError CheckpointError
- | EndpointDecodeContractError {
- eeEndpointDescription :: EndpointDescription
- eeEndpointValue :: EndpointValue Value
- eeErrorMessage :: Text
- | OtherContractError Text
- class AsContractError r where
- _ContractError :: Prism' r ContractError
- _WalletContractError :: Prism' r WalletAPIError
- _ChainIndexContractError :: Prism' r (Text, ChainIndexResponse)
- _ConstraintResolutionContractError :: Prism' r MkTxError
- _ToCardanoConvertContractError :: Prism' r ToCardanoError
- _ResumableContractError :: Prism' r MatchingError
- _CCheckpointContractError :: Prism' r CheckpointError
- _EndpointDecodeContractError :: Prism' r (EndpointDescription, EndpointValue Value, Text)
- _OtherContractError :: Prism' r Text
- newtype MatchingError = WrongVariantError {
- unWrongVariantError :: Text
- class AsMatchingError r where
- _MatchingError :: Prism' r MatchingError
- _WrongVariantError :: Prism' r Text
- newtype AssertionError = GenericAssertion {
- unAssertionError :: Text
- class AsAssertionError r where
- _AssertionError :: Prism' r AssertionError
- _GenericAssertion :: Prism' r Text
Documentation
data ContractError Source #
WalletContractError WalletAPIError | |
ChainIndexContractError Text ChainIndexResponse | |
ConstraintResolutionContractError MkTxError | |
ToCardanoConvertContractError ToCardanoError | |
ResumableContractError MatchingError | |
CCheckpointContractError CheckpointError | |
EndpointDecodeContractError | |
| |
OtherContractError Text |
Instances
class AsContractError r where Source #
_ContractError :: Prism' r ContractError Source #
_WalletContractError :: Prism' r WalletAPIError Source #
_ChainIndexContractError :: Prism' r (Text, ChainIndexResponse) Source #
_ConstraintResolutionContractError :: Prism' r MkTxError Source #
_ToCardanoConvertContractError :: Prism' r ToCardanoError Source #
_ResumableContractError :: Prism' r MatchingError Source #
_CCheckpointContractError :: Prism' r CheckpointError Source #
_EndpointDecodeContractError :: Prism' r (EndpointDescription, EndpointValue Value, Text) Source #
_OtherContractError :: Prism' r Text Source #
Instances
newtype MatchingError Source #
An error
WrongVariantError | |
|
Instances
class AsMatchingError r where Source #
_MatchingError :: Prism' r MatchingError Source #
_WrongVariantError :: Prism' r Text Source #
Instances
AsMatchingError MatchingError Source # | |
Defined in Plutus.Contract.Error _MatchingError :: Prism' MatchingError MatchingError Source # _WrongVariantError :: Prism' MatchingError Text Source # |
newtype AssertionError Source #
An error emitted when an Assertion
fails.
GenericAssertion | |
|
Instances
class AsAssertionError r where Source #
_AssertionError :: Prism' r AssertionError Source #
_GenericAssertion :: Prism' r Text Source #
Instances
AsAssertionError Text Source # | This lets people use |
Defined in Plutus.Contract.Error _AssertionError :: Prism' Text AssertionError Source # _GenericAssertion :: Prism' Text Text Source # | |
AsAssertionError AssertionError Source # | |
Defined in Plutus.Contract.Error _AssertionError :: Prism' AssertionError AssertionError Source # _GenericAssertion :: Prism' AssertionError Text Source # | |
AsAssertionError (TraceError e) Source # | |
Defined in Plutus.Contract.Trace _AssertionError :: Prism' (TraceError e) AssertionError Source # _GenericAssertion :: Prism' (TraceError e) Text Source # |