"""Data class representing a ``<Message>`` element in a DMSContent response."""

from dataclasses import dataclass


@dataclass
class DmsContentMessage:
    """A server-side message returned in the ``<Messages>`` section of a DMSContent response.

    Messages with a non-zero ``faultcode`` indicate server-side warnings or errors.

    Attributes:
        faultcode: Numeric fault code identifying the message type.
        sourcecode: Numeric source code indicating where the message originated.
        text: Human-readable message text.
    """

    faultcode: int
    sourcecode: int
    text: str
