pub fn convert_error_code(field: String) -> Result<ErrorCode>