add default error handle method