the only possible errors i can think of are a f*ed up mysql server which you can't establish a connection to or trying to insert a record leading to primary/unique key conflicts
if no connection is possible output "database server is not available right now. sorry dude"
if inserting a record with an already existing combination of keys (duplicate error) output "sorry, this username is already in use, please choose a different one"
which other errors do you have in mind?