# generated by datamodel-codegen:
#   filename:  error_message.json

from __future__ import annotations

from dataclasses import dataclass
from enum import Enum


class When(Enum):
    """
    When the error message is emitted
    """

    config = "config"
    collect = "collect"
    runtest = "runtest"


@dataclass
class ErrorMessage:
    """
    An error message
    """

    when: When
    """
    When the error message is emitted
    """
    filename: str
    """
    The filename of the file where the error message is emitted
    """
    lineno: int
    """
    The line number of the file where the error message is emitted
    """
    exception_type: str
    """
    The exception type
    """
    exception_value: str
    """
    The exception value
    """
    event: str = "ErrorMessage"
    """
    The event type
    """
