public String printExceptionMessage(Exception e, String message, String level) {
    """
	Prints the error message for a caught exception according to a level passed as argument. It's composed of:
	- defined error message
	- exception message
	
	@param e
	@param message
	@param level
	
	@return printedMessage
    """

    if (e.getMessage() != null)
      message += "\n" + e.getClass().getName() + " - " + e.getMessage();
    else
      message += "\n" + e.getClass().getName();

    switch (level) {
    case "debug":
      this.messageHandler.debug(this, message);
      break;
    case "info":
      this.messageHandler.info(this, message);
      break;
    case "warn":
      this.messageHandler.warn(this, message);
      break;
    case "error":
      this.messageHandler.error(this, message);
      break;
    }

    return message;
  }
public String printExceptionMessage(Exception e, String message, String level) {

    if (e.getMessage() != null)
      message += "\n" + e.getClass().getName() + " - " + e.getMessage();
    else
      message += "\n" + e.getClass().getName();

    switch (level) {
    case "debug":
      this.messageHandler.debug(this, message);
      break;
    case "info":
      this.messageHandler.info(this, message);
      break;
    case "warn":
      this.messageHandler.warn(this, message);
      break;
    case "error":
      this.messageHandler.error(this, message);
      break;
    }

    return message;
  }
public String printExceptionMessage ( Exception e , String message , String level ) { if ( e . getMessage ( ) != null ) message += "\n" + e . getClass ( ) . getName ( ) + " - " + e . getMessage ( ) ; else message += "\n" + e . getClass ( ) . getName ( ) ; switch ( level ) { case "debug" : this . messageHandler . debug ( this , message ) ; break ; case "info" : this . messageHandler . info ( this , message ) ; break ; case "warn" : this . messageHandler . warn ( this , message ) ; break ; case "error" : this . messageHandler . error ( this , message ) ; break ; } return message ; }
Prints the error message for a caught exception according to a level passed as argument. It's composed of:
- defined error message
- exception message

@param e
@param message
@param level

@return printedMessage
Prints the error message for a caught exception according to a level passed as argument . It s composed of : - defined error message - exception message