An error caused by the calling add-on, such as passing an unregistered ID or
a location with no machine at it.
Remarks
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.
An error caused by the calling add-on, such as passing an unregistered ID or a location with no machine at it.
Remarks
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.