Remove the use of Exception