Added the possibility to override default error behaviour