Class P4::Message
Description
P4::Message
objects contain error or other
diagnostic messages from the
Helix Core Server; they are
returned by P4::Messages()
.
Script writers can test the severity of the messages in order to
determine if the server message consisted of command output
(E_INFO
), warnings, (E_WARN
), or errors
(E_FAILED
/E_FATAL
).
Class methods
None.
Instance methods
$message.GetSeverity() -> int
Severity of the message, which is one of the following values:
Value | Meaning |
---|---|
|
No error. |
|
Informational message only. |
|
Warning message only. |
|
Command failed. |
|
Severe error; cannot continue. |
$message.GetGeneric() -> int
Returns the generic class of the error.
$message.GetId() -> int
Returns the unique ID of the message.
$message.GetText() -> int
Converts the message into a string.