Skip to content

Commit

Permalink
Aug 5, 2024, 5:29 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 5, 2024
1 parent d4e95ec commit b442527
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ export class TokenNotFound extends Error {
}
}

export class AssetObjectNotFound extends Error{
constructor(tokenId: string, paraId: number){
super();

this.message = `TokenNotFound and can't find asset in asset registry. | token id: ${tokenId} | para id: ${paraId}`
this.name = 'AssetObjectNotFound'
}
}

export class NoCrossChainAdapterFound extends Error {
constructor(name: string) {
super();
Expand Down

0 comments on commit b442527

Please sign in to comment.