Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit 5e20b1b

Browse files
committed
Added asset not found error
1 parent fc62f4a commit 5e20b1b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nftlabs/errors/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
from typing import Any, Optional
2+
13

24
class NoSignerException(Exception):
35
def __init__(self):
46
super().__init__("No signer (private key) supplied to SDK")
7+
8+
9+
class AssetNotFoundException(Exception):
10+
def __init__(self, identifier: Optional[Any] = None):
11+
super().__init__(f"Asset with ID '{identifier}' not found" if identifier is not None else "Asset not found")

0 commit comments

Comments
 (0)