Used by the GiniCaptureNetworkService and GiniCaptureNetworkApi to return error messages.
Create a new error.
Create a new error with a cause.
error cause
error message