|
|
|
@ -14,7 +14,7 @@ import java.util.ResourceBundle;
|
|
|
|
|
@Getter
|
|
|
|
|
@ResponseStatus(code = HttpStatus.BAD_REQUEST, reason = "Invalid parameter")
|
|
|
|
|
public class CustomBaseException extends RuntimeException {
|
|
|
|
|
ResourceBundle message = ResourceBundle.getBundle("message.error");
|
|
|
|
|
// ResourceBundle message = ResourceBundle.getBundle("error");
|
|
|
|
|
|
|
|
|
|
private ErrorCode errorCode;
|
|
|
|
|
private String code;
|
|
|
|
@ -53,9 +53,9 @@ public class CustomBaseException extends RuntimeException {
|
|
|
|
|
return super.getMessage();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getLocalizedMessage(){
|
|
|
|
|
return message.getString(super.getMessage());
|
|
|
|
|
//return messageSourceAccessor.get
|
|
|
|
|
}
|
|
|
|
|
// @Override
|
|
|
|
|
// public String getLocalizedMessage(){
|
|
|
|
|
// return message.getString(super.getMessage());
|
|
|
|
|
// //return messageSourceAccessor.get
|
|
|
|
|
// }
|
|
|
|
|
}
|