Playing around with custom error types