mu: implement a constructor for custom error types.