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

C/C++ API Documentation | 2026.1

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

Add a network-related error to an `Error`.

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

## Notes

To use an `Error` object to track network-related errors, use `Net()`. Note that network communication with the P4 Server and related errors are already handled by lower levels of the client API.

## Example

The following example adds an error message, related to a failure to bind to a network interface, to an `Error` object.

    e.Net( "bind", service.Text() );

Your search for returned results