class MyError extends Error { var message = "My custom error occurred"; }