All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.minlia.rocket.problem.ErrorAttributes Maven / Gradle / Ivy

There is a newer version: 2.0.4.1.RELEASE
Show newest version
package com.minlia.rocket.problem;

import java.util.Map;
import org.springframework.boot.web.servlet.error.DefaultErrorAttributes;
import org.springframework.web.context.request.WebRequest;

public class ErrorAttributes extends DefaultErrorAttributes {

  @Override
  public Map getErrorAttributes(WebRequest webRequest, boolean includeStackTrace) {
    Map errorAttributes = super.getErrorAttributes(webRequest, includeStackTrace);
//		errorAttributes.remove("message");
    return errorAttributes;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy