| 1 | export class RelayAccountException extends Error { |
| 2 | public readonly accountIdMap: Map<string, string> |
| 3 | |
| 4 | constructor( |
| 5 | public readonly relayAccountRef: string, |
| 6 | public readonly originalAccountId: string, |
| 7 | accountIdMap?: Map<string, string>, |
| 8 | ) { |
| 9 | super('This account requires relay') |
| 10 | this.accountIdMap = accountIdMap ?? new Map([[originalAccountId, relayAccountRef]]) |
| 11 | } |
| 12 | } |
| 13 |