replace implements Error by extends Error