Bedrock Energistics Core
    Preparing search index...

    Class PublicErrorBeta

    An error caused by the calling add-on, such as passing an unregistered ID or a location with no machine at it.

    These describe a mistake that the add-on can fix. Use PublicError.type to tell the cases apart rather than matching on the message.

    Bedrock Energistics Core runs in its own pack, so many API calls cross a pack boundary. When one of these is thrown on the other side of that boundary, it is sent back and rethrown here, so the error surfaces in the add-on that caused it rather than in the core pack's log.

    Hierarchy

    • Error
      • PublicError
    Index
    cause?: unknown
    message: string
    name: string
    stack?: string

    What kind of mistake this is.