mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD (5.2) to 5.2.N (5.2.1)
126609 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2) 125121 gjames: RA-675: Fixed the descriptionURL in error response git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126954 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -34,6 +34,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
*/
|
||||
public class DefaultExceptionResolver implements ExceptionResolver<Exception>
|
||||
{
|
||||
public static final String ERROR_URL = "api-explorer.alfresco.com";
|
||||
public static final String DEFAULT_MESSAGE_ID = "framework.exception.ApiDefault";
|
||||
|
||||
@Override
|
||||
|
@@ -210,7 +210,7 @@ public abstract class ApiWebScript extends AbstractWebScript
|
||||
*/
|
||||
public void renderErrorResponse(final ErrorResponse errorResponse, final WebScriptResponse res) throws IOException {
|
||||
|
||||
errorResponse.setDescriptionURL("http://developer.alfresco.com/ErrorsExplained.html#"+errorResponse.getErrorKey());
|
||||
errorResponse.setDescriptionURL(DefaultExceptionResolver.ERROR_URL);
|
||||
|
||||
setContentInfoOnResponse(res, DEFAULT_JSON_CONTENT);
|
||||
|
||||
|
Reference in New Issue
Block a user