Fixed doc for custom error definition