package br.com.mv.modulo.exception;

import lombok.Getter;
import lombok.Setter;
import br.com.mv.modulo.model.type.EnumTipoMensagem;

@SuppressWarnings("serial")
public class GenericException extends Exception {

	@Getter
	@Setter
	private EnumTipoMensagem messageType;
	
	public GenericException() {
		super();
	}

	public GenericException(String resourceKey) {
		super(resourceKey);
		this.messageType = EnumTipoMensagem.ERRO;
	}

	public GenericException(String resourceKey, EnumTipoMensagem messageType) {
		this(resourceKey);
		this.messageType = messageType;
	}
}

@@ -41,21 +41,52 @@
 ort 
-lombok.Getter
+br.com.mv.modulo.model.type.EnumTipoMensagem
 ;%0Aim
@@ -97,17 +97,17 @@
  lombok.
-S
+G
 etter;%0Ai
@@ -116,52 +116,21 @@
 ort 
-br.com.mv.modulo.model.type.EnumTipoMensagem
+lombok.Setter
 ;%0A%0A@
@@ -194,16 +194,23 @@
 extends 
+Runtime
 Exceptio
@@ -311,24 +311,89 @@
 %09super();%0A%09%7D
+%0A%09%0A%09public GenericException(Throwable cause) %7B%0A%09%09super(cause);%0A%09%7D
 %0A%0A%09public Ge

test change Exception to RuntimeException.