Log in
Interface

ExceptionMessageFormatterInterface

Magento\GraphQl\Helper\Error\ExceptionMessageFormatterInterface

What it does

This interface defines how internal exceptions should be formatted into user-safe GraphQL error messages.

Developers implement this interface to control which exception details are exposed to API clients versus logged internally, ensuring sensitive information isn't leaked while providing meaningful error messages to GraphQL consumers.

Public Methods

  • getFormatted()