.. java:import:: org.apache.commons.lang StringUtils MdsException ============ .. java:package:: org.motechproject.mds.ex :noindex: .. java:type:: 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 ^^^^^^^^^^^^ .. java:constructor:: public MdsException(String messageKey) :outertype: MdsException Constructs a new mds exception with the specified message key. :param messageKey: the message key used later to display message in appropriate language on UI. MdsException ^^^^^^^^^^^^ .. java:constructor:: public MdsException(String messageKey, String params) :outertype: MdsException Constructs a new mds exception with the specified message key and params. :param messageKey: the message key used later to display message in appropriate language on UI. :param params: the params used later to change placeholders in the message MdsException ^^^^^^^^^^^^ .. java:constructor:: public MdsException(String messageKey, String... params) :outertype: MdsException Constructs a new mds exception with the specified message key and params. :param messageKey: the message key used later to display message in appropriate language on UI. :param params: the params used later to change placeholders in the message MdsException ^^^^^^^^^^^^ .. java:constructor:: public MdsException(String messageKey, Throwable cause) :outertype: MdsException Constructs a new mds exception with the specified message key and the specified cause. :param messageKey: the message key used later to display message in appropriate language on UI. :param cause: the cause of exception. MdsException ^^^^^^^^^^^^ .. java:constructor:: public MdsException(String messageKey, String params, Throwable cause) :outertype: MdsException Constructs a new mds exception with the specified message key and the specified cause. :param messageKey: the message key used later to display message in appropriate language on UI. :param params: the params used later to change placeholders in the message :param cause: the cause of exception. Methods ------- getMessageKey ^^^^^^^^^^^^^ .. java:method:: public String getMessageKey() :outertype: MdsException getParams ^^^^^^^^^ .. java:method:: public String getParams() :outertype: MdsException