API ReferenceErrorsClass
PriceFeedNotFoundError
Error thrown when no single Pyth price feed can be resolved for a token: Hermes returned no feed for
the token’s symbol, or more than one. The feed lookup wraps it in a
PriceServerError, so callers that already catch PriceServerError keep
working; use error.walk(PriceFeedNotFoundError) to tell “this token has no feed” from a transport
failure.
Extends
Constructors
Constructor
new PriceFeedNotFoundError( message, symbol, cause?): PriceFeedNotFoundError;Parameters
| Parameter | Type |
|---|---|
message | string |
symbol | string |
cause? | unknown |
Returns
PriceFeedNotFoundError
Overrides
Properties
symbol
readonly symbol: string;Methods
walk()
walk<T>(errorType): T | undefined;Checks if the provided ErrorType is in the error hierarchy for the current error.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends Error | The type of the error being searched for. |
Parameters
| Parameter | Type | Description |
|---|---|---|
errorType | (…args) => T | The error type to find. |
Returns
T | undefined
The error, if it is found in the hierarchy, otherwise undefined.