com.mymed.controller.core.exception
Class AbstractMymedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.mymed.controller.core.exception.AbstractMymedException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InternalBackEndException, IOBackEndException, WrongFormatException

public abstract class AbstractMymedException
extends java.lang.Exception

An myMed exception is used to convert the Exception message in a jSon format for the frontend

Author:
lvanni
See Also:
Serialized Form

Constructor Summary
AbstractMymedException(int status, java.lang.String message)
           
 
Method Summary
 java.lang.String getMessage()
           
 int getStatus()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractMymedException

public AbstractMymedException(int status,
                              java.lang.String message)
Method Detail

getStatus

public int getStatus()

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable