Create a new P4Exception

Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2017.3.160.836 (2017.3.160.0836)

Syntax

C#
public P4Exception(
	string cmd,
	string[] args,
	ErrorSeverity nLevel,
	string nMessage
)
Visual Basic
Public Sub New ( _
	cmd As String, _
	args As String(), _
	nLevel As ErrorSeverity, _
	nMessage As String _
)
Visual C++
public:
P4Exception(
	String^ cmd, 
	array<String^>^ args, 
	ErrorSeverity nLevel, 
	String^ nMessage
)

Parameters

cmd
Type: System..::..String
command which was run
args
Type: array<System..::..String>[]()[][]
arguments to the command
nLevel
Type: Perforce.P4..::..ErrorSeverity
Severity level
nMessage
Type: System..::..String
Error message

See Also