You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

errors.ts 368B

1234567891011
  1. export class BadTxHashError extends Error{
  2. constructor(hash:string){
  3. super(`Bad tx hash format: "${hash}"`)
  4. }
  5. }
  6. export class CannotVerifyOwnerError extends Error{
  7. constructor(hash: string, actualAccount: string, desiredAccount: string){
  8. super((`Expected tx "${hash}" to be initiated by ${desiredAccount} but was ${actualAccount}`))
  9. }
  10. }