Make possible to generate custom errors