handle exceptions for model
customizing