Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2025.2

# Error::Sys( const char *, const char * )

Add a system error to an `Error`.

Virtual? | No |
Class | `Error` |
Arguments | `const char *op` | the system call that was attempted
| `const char *arg` | relevant information about that call
Returns | `void` |

## Notes

To use an `Error` object to track errors generated by system calls such as file operations, use `Sys()`.

## Example

The following example adds an error message, related to a failure to rename a file, to an `Error` object.

    e.Sys( "rename", targetFile->Name() );

Your search for returned results