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

P4 Extensions Documentation | 2025.1

# Class P4.Message

## Description

`P4.Message` objects contain error or other diagnostic messages from the P4 Server. Retrieve them by using the `messages()` method.

## Instance methods

### message.severity() -> number

Severity of the message.

### message.generic() -> number

Returns the generic class of the error.

### message.msgid() -> number

Returns the unique ID of the message.

### message.to_s() -> string

Converts the message into a string.

### message.inspect() -> string

To facilitate debugging, returns a string that holds a formatted representation of the entire `P4.Message` object.

Your search for returned results