MdsException

public class MdsException extends RuntimeException

The MdsException exception is a basic class for all other exceptions defined in the mds module. It contains information about a message key which will be used on UI to present a message in appropriate language.

Constructors

MdsException

public MdsException(String message)

MdsException

public MdsException(String message, Throwable cause)

Constructs a new mds exception with the specified message key and params.

Parameters:
  • message – the error message for the logs
  • cause – the cause of the exception

MdsException

public MdsException(String message, Throwable cause, String messageKey)

Constructs a new mds exception with the specified message key and params.

Parameters:
  • message – the error message for the logs
  • cause – the cause of the exception
  • messageKey – the message key used later to display message in appropriate language on UI.

MdsException

public MdsException(String message, Throwable cause, String messageKey, String params)

Constructs a new mds exception with the specified message key and params.

Parameters:
  • message – the error message for the logs
  • cause – the cause of the exception
  • messageKey – the message key used later to display message in appropriate language on UI.
  • params – the params used later to change placeholders in the message

MdsException

public MdsException(String message, Throwable cause, String messageKey, String... params)

Constructs a new mds exception with the specified message key and params.

Parameters:
  • message – the error message for the logs
  • cause – the cause of the exception
  • messageKey – the message key used later to display message in appropriate language on UI.
  • params – the params used later to change placeholders in the message

Methods

getMessageKey

public String getMessageKey()
Returns:the message key used later to display message in appropriate language on UI

getParams

public String getParams()
Returns:the params used later to change placeholders in the message