P4ExceptionThrow Method (String, String, ErrorSeverity, String)
|
Create and throw an exception if it exceeds the MinThrowLevel
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.1.261.8274
Syntax public static void Throw(
string cmd,
string[] args,
ErrorSeverity nLevel,
string nMessage
)
Public Shared Sub Throw (
cmd As String,
args As String(),
nLevel As ErrorSeverity,
nMessage As String
)
public:
static void Throw(
String^ cmd,
array<String^>^ args,
ErrorSeverity nLevel,
String^ nMessage
)
static member Throw :
cmd : string *
args : string[] *
nLevel : ErrorSeverity *
nMessage : string -> unit
Parameters
- cmd
- Type: SystemString
command which was run - args
- Type: SystemString
arguments to the command - nLevel
- Type: Perforce.P4ErrorSeverity
Severity level - nMessage
- Type: SystemString
Error message
See Also