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 messageKey)

Constructs a new mds exception with the specified message key.

Parameters:
  • messageKey – the message key used later to display message in appropriate language on UI.

MdsException

public MdsException(String messageKey, String params)

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

Parameters:
  • 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 messageKey, String... params)

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

Parameters:
  • 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 messageKey, Throwable cause)

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

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

MdsException

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

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

Parameters:
  • 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
  • cause – the cause of exception.

Methods

getMessageKey

public String getMessageKey()

getParams

public String getParams()