PalletErrorMetadataV16 class

Metadata about errors in a pallet (V16)

V16 extends the base PalletErrorMetadata by adding deprecation information for individual error variants. This allows runtime developers to mark specific errors as deprecated while maintaining backward compatibility.

Reference: https://github.com/paritytech/frame-metadata/blob/main/frame-metadata/src/v16.rs#L289-L306

Inheritance

Constructors

PalletErrorMetadataV16({required int type, required EnumDeprecationInfo deprecationInfo})
const

Properties

deprecationInfo EnumDeprecationInfo
Deprecation information for error variants
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int
Type ID referencing the enum of all errors in this pallet
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

codec → const $PalletErrorMetadataV16
Codec instance for PalletErrorMetadataV16