Skip to content

@mcsb/api / Exports / ResourcesNotReadyError

Class: ResourcesNotReadyError

Error that is thrown when you attempt to use HypixelResources before it has fetched all data from the Hypixel API. This should never happen unless you are overriding the default HypixelResources class, as the HypixelResources.create method will not return a new instance until all resources have been fetched.

Hierarchy

  • Error

    ResourcesNotReadyError

Table of contents

Constructors

Constructors

constructor

new ResourcesNotReadyError(options?)

Constructor for ResourcesNotReadyError.

Parameters

NameTypeDescription
options?ErrorOptionsError options

Overrides

Error.constructor

Defined in

packages/api/src/throwables/ResourcesNotReadyError.ts:11

Released under the MIT License.