Safe Haskell | None |
---|---|
Language | Haskell2010 |
Plutus.Contract.Error
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 #
Constructors
WalletContractError WalletAPIError | |
ChainIndexContractError Text ChainIndexResponse | |
ConstraintResolutionContractError MkTxError | |
ToCardanoConvertContractError ToCardanoError | |
ResumableContractError MatchingError | |
CCheckpointContractError CheckpointError | |
EndpointDecodeContractError | |
Fields
| |
OtherContractError Text |
Instances
class AsContractError r where Source #
Minimal complete definition
Methods
_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
Constructors
WrongVariantError | |
Fields
|
Instances
class AsMatchingError r where Source #
Minimal complete definition
Methods
_MatchingError :: Prism' r MatchingError Source #
_WrongVariantError :: Prism' r Text Source #
Instances
AsMatchingError MatchingError Source # | |
Defined in Plutus.Contract.Error Methods _MatchingError :: Prism' MatchingError MatchingError Source # _WrongVariantError :: Prism' MatchingError Text Source # |
newtype AssertionError Source #
An error emitted when an Assertion
fails.
Constructors
GenericAssertion | |
Fields
|
Instances
class AsAssertionError r where Source #
Minimal complete definition
Methods
_AssertionError :: Prism' r AssertionError Source #
_GenericAssertion :: Prism' r Text Source #
Instances
AsAssertionError Text Source # | This lets people use |
Defined in Plutus.Contract.Error Methods _AssertionError :: Prism' Text AssertionError Source # _GenericAssertion :: Prism' Text Text Source # | |
AsAssertionError AssertionError Source # | |
Defined in Plutus.Contract.Error Methods _AssertionError :: Prism' AssertionError AssertionError Source # _GenericAssertion :: Prism' AssertionError Text Source # | |
AsAssertionError (TraceError e) Source # | |
Defined in Plutus.Contract.Trace Methods _AssertionError :: Prism' (TraceError e) AssertionError Source # _GenericAssertion :: Prism' (TraceError e) Text Source # |