NearStakingError
Defined in: protocol-staking-native-near/src/errors.ts:23
A refusal with a code an app can branch on and a sentence it can show.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NearStakingError(
code,message,extra?):NearStakingError
Defined in: protocol-staking-native-near/src/errors.ts:29
Parameters
Section titled “Parameters”message
Section titled “message”string
extra?
Section titled “extra?”cause?
Section titled “cause?”unknown
details?
Section titled “details?”Record<string, unknown>
refusals?
Section titled “refusals?”Returns
Section titled “Returns”NearStakingError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”
readonlycode:NearStakingErrorCode
Defined in: protocol-staking-native-near/src/errors.ts:24
details
Section titled “details”
readonlydetails:Record<string,unknown> |undefined
Defined in: protocol-staking-native-near/src/errors.ts:28
Code-specific data (pool id, unlock estimate, the fresh transactions for ‘quote-changed’…).
refusals
Section titled “refusals”
readonlyrefusals:PoolRefusal[] |undefined
Defined in: protocol-staking-native-near/src/errors.ts:26
For ‘pool-not-allowed’.