cardano-api:internal
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Error

Description

Class of errors used in the Api.

Synopsis

Documentation

class Error e where Source #

Methods

prettyError :: e -> Doc ann Source #

Instances

Instances details
Error IOException Source # 
Instance details

Defined in Cardano.Api.Error

Error AnchorDataFromCertificateError Source # 
Instance details

Defined in Cardano.Api.Certificate

Error InputDecodeError Source # 
Instance details

Defined in Cardano.Api.DeserialiseAnyOf

Error ErrorAsException Source # 
Instance details

Defined in Cardano.Api.Error

Error ScriptExecutionError Source # 
Instance details

Defined in Cardano.Api.Fees

Error FoldBlocksError Source # 
Instance details

Defined in Cardano.Api.LedgerState

Error GenesisConfigError Source # 
Instance details

Defined in Cardano.Api.LedgerState

Error InitialLedgerStateError Source # 
Instance details

Defined in Cardano.Api.LedgerState

Error LeadershipError Source # 
Instance details

Defined in Cardano.Api.LedgerState

Error LedgerStateError Source # 
Instance details

Defined in Cardano.Api.LedgerState

Error OperationalCertIssueError Source # 
Instance details

Defined in Cardano.Api.OperationalCertificate

Error ProtocolParametersConversionError Source # 
Instance details

Defined in Cardano.Api.ProtocolParameters

Error ProtocolParametersError Source # 
Instance details

Defined in Cardano.Api.ProtocolParameters

Error ScriptDataJsonBytesError Source # 
Instance details

Defined in Cardano.Api.ScriptData

Error ScriptDataJsonError Source # 
Instance details

Defined in Cardano.Api.ScriptData

Error ScriptDataJsonSchemaError Source # 
Instance details

Defined in Cardano.Api.ScriptData

Error ScriptDataRangeError Source # 
Instance details

Defined in Cardano.Api.ScriptData

Error Bech32DecodeError Source # 
Instance details

Defined in Cardano.Api.SerialiseBech32

Error JsonDecodeError Source # 
Instance details

Defined in Cardano.Api.SerialiseJSON

Error TextEnvelopeCddlError Source # 
Instance details

Defined in Cardano.Api.SerialiseLedgerCddl

Error RawBytesHexError Source # 
Instance details

Defined in Cardano.Api.SerialiseRaw

Error TextEnvelopeError Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Error StakePoolMetadataValidationError Source # 
Instance details

Defined in Cardano.Api.StakePoolMetadata

Error TxBodyError Source # 
Instance details

Defined in Cardano.Api.Tx.Body

Error TxMetadataJsonError Source # 
Instance details

Defined in Cardano.Api.TxMetadata

Error TxMetadataJsonSchemaError Source # 
Instance details

Defined in Cardano.Api.TxMetadata

Error TxMetadataRangeError Source # 
Instance details

Defined in Cardano.Api.TxMetadata

Error () Source # 
Instance details

Defined in Cardano.Api.Error

Methods

prettyError :: () -> Doc ann Source #

Error e => Error (FileError e) Source # 
Instance details

Defined in Cardano.Api.Error

Methods

prettyError :: FileError e -> Doc ann Source #

Error (AutoBalanceError era) Source # 
Instance details

Defined in Cardano.Api.Fees

Methods

prettyError :: AutoBalanceError era -> Doc ann Source #

Error (TransactionValidityError era) Source # 
Instance details

Defined in Cardano.Api.Fees

Error (TxBodyErrorAutoBalance era) Source # 
Instance details

Defined in Cardano.Api.Fees

Error (TxFeeEstimationError era) Source # 
Instance details

Defined in Cardano.Api.Fees

throwErrorAsException :: Error e => e -> IO a Source #

The preferred approach is to use Except or ExceptT, but you can if necessary use IO exceptions.

data FileError e Source #

Instances

Instances details
Functor FileError Source # 
Instance details

Defined in Cardano.Api.Error

Methods

fmap :: (a -> b) -> FileError a -> FileError b Source #

(<$) :: a -> FileError b -> FileError a Source #

Show e => Show (FileError e) Source # 
Instance details

Defined in Cardano.Api.Error

Error e => Error (FileError e) Source # 
Instance details

Defined in Cardano.Api.Error

Methods

prettyError :: FileError e -> Doc ann Source #

Eq e => Eq (FileError e) Source # 
Instance details

Defined in Cardano.Api.Error

fileIOExceptT :: forall (m :: Type -> Type) s e. MonadIO m => FilePath -> (FilePath -> IO s) -> ExceptT (FileError e) m s Source #