SQL fetch with try / catch

Error!: SQLSTATE[28000] [1045] Access denied for user 'databseusername'@'localhost' (using password: YES)