Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ErrorParser

Used for creating client friendly error messages

Hierarchy

  • ErrorParser

Index

Methods

Static parseBadRequestError

  • parseBadRequestError(serverError: AxiosError, displayNames: Record<string, string>): Record<string, string>
  • Converts server error message(s) to be more readily user readable by changing the properties to user friendly display names and combining, if any, errors of the same form field.

    Parameters

    • serverError: AxiosError
    • displayNames: Record<string, string>

    Returns Record<string, string>

Generated using TypeDoc