How to Handle Bank Errors

Hi, I and a bank error that appeared on my bank transaction.
For example, I deposited $100 of checks, but it made an error and made $1000 deposit.
The difference, $900, later came out of my bank account.
How should I categorize this $900?
Thanks
1