---
title: Error
description: 输出错误类信息。
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/msadg/mxvisionug_0500.html"
---

# Error

#### 函数功能

输出错误类信息。


#### 函数原型

```
void Log::Error (const std::string& file, const std::string& function, const int& line, const std::string& msg);
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| file | 输入 | 信息对应的文件。 |
| function | 输入 | 信息对应的函数。 |
| line | 输入 | 信息所在的行数。 |
| msg | 输入 | 信息内容。 |
