problem description
A code may throw error An or error B
. The two errors are handled differently. After capture, you need to determine which error
after capturing an exception error, does error only have message, that can only match the string determination problem in message? But message should not be just for people to see, string matching is not accurate, is it?