참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
error matches an error thrown by quais that matches the error code.
In TypeScript environments, this can be used to check that error matches an quaisError type, which means the
expected properties will be set.
Type parameters
| Type parameter |
|---|
K extends ErrorCode |
T extends |
| UnknownError |
| InvalidArgumentError |
| BadDataError |
| NotImplementedError |
| UnsupportedOperationError |
| NetworkError |
| ServerError |
| TimeoutError |
| CancelledError |
| BufferOverrunError |
| NumericFaultError |
| MissingArgumentError |
| UnexpectedArgumentError |
| CallExceptionError |
| InsufficientFundsError |
| NonceExpiredError |
| ReplacementUnderpricedError |
| TransactionReplacedError |
| TransactionNotFoundError |
| TransactionAlreadyKnown |
| ActionRejectedError |
| ProviderFailedToInitializeError |
Parameters
| Parameter | Type |
|---|---|
error | any |
code | K |
Returns
error is T
