Solana programs do not support custom errors; everything is handled using internal errors.
AnchorError: AnchorError caused by account: token_client_account. Error Code: ConstraintSeeds. Error Number: 2006. Error Message: A seeds constraint was violated. {
errorLogs: [
'Program log: AnchorError caused by account: token_client_account. Error Code: ConstraintSeeds. Error Number: 2006. Error Message: A seeds constraint was violated.'
],
logs: [
'Program AsUG3qmKKMjEYZDCTqo4hJEnLmxGj82SDGiXci1hNFBx invoke [1]',
'Program log: Instruction: CreateClientTrustedAddress',
'Program log: AnchorError caused by account: token_client_account. Error Code: ConstraintSeeds. Error Number: 2006. Error Message: A seeds constraint was violated.',
'Program AsUG3qmKKMjEYZDCTqo4hJEnLmxGj82SDGiXci1hNFBx consumed 7607 of 200000 compute units',
'Program AsUG3qmKKMjEYZDCTqo4hJEnLmxGj82SDGiXci1hNFBx failed: custom program error: 0x7d6'
],
error: {
errorCode: { code: 'ConstraintSeeds', number: 2006 },
errorMessage: 'A seeds constraint was violated',
comparedValues: undefined,
origin: 'token_client_account'
}
}