{"version":3,"file":"error.mjs","names":[],"sources":["../src/error.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nexport class WalrusClientError extends Error {}\n\nexport class RetryableWalrusClientError extends WalrusClientError {}\n\n/** Thrown when the client could not retrieve the status of a blob from any storage node. */\nexport class NoBlobStatusReceivedError extends WalrusClientError {}\n\n/** Thrown when the client could not retrieve a verified blob status for the blob. */\nexport class NoVerifiedBlobStatusReceivedError extends WalrusClientError {}\n\n/** Thrown when the client could not retrieve blob metadata from any storage node. */\nexport class NoBlobMetadataReceivedError extends RetryableWalrusClientError {}\n\n/** Thrown when the client could not retrieve enough slivers to reconstruct the blob. */\nexport class NotEnoughSliversReceivedError extends RetryableWalrusClientError {}\n\n/** Thrown when the client could not write enough slivers to upload the blob. */\nexport class NotEnoughBlobConfirmationsError extends RetryableWalrusClientError {}\n\n/** Thrown when the client is currently behind the current epoch. */\nexport class BehindCurrentEpochError extends RetryableWalrusClientError {}\n\n/** Thrown when a blob is not certified or determined to not exist. */\nexport class BlobNotCertifiedError extends RetryableWalrusClientError {}\n\n/** Thrown when a blob was determined to be incorrectly encoded. */\nexport class InconsistentBlobError extends WalrusClientError {}\n\n/** Thrown when blob is blocked by a quorum of storage nodes. */\nexport class BlobBlockedError extends Error {}\n"],"mappings":";AAGA,IAAa,oBAAb,cAAuC,MAAM;AAE7C,IAAa,6BAAb,cAAgD,kBAAkB;;AAGlE,IAAa,4BAAb,cAA+C,kBAAkB;;AAGjE,IAAa,oCAAb,cAAuD,kBAAkB;;AAGzE,IAAa,8BAAb,cAAiD,2BAA2B;;AAG5E,IAAa,gCAAb,cAAmD,2BAA2B;;AAG9E,IAAa,kCAAb,cAAqD,2BAA2B;;AAGhF,IAAa,0BAAb,cAA6C,2BAA2B;;AAGxE,IAAa,wBAAb,cAA2C,2BAA2B;;AAGtE,IAAa,wBAAb,cAA2C,kBAAkB;;AAG7D,IAAa,mBAAb,cAAsC,MAAM"}