Add throw error handle.
Add Security class to handle errors.