mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Merged HEAD (5.2) to 5.2.N (5.2.1)
126554 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2) 124208 gjames: RA-892: Improved the error message handling git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126900 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -38,8 +38,8 @@ public class InvalidSelectException extends InvalidArgumentException
|
||||
|
||||
public static String DEFAULT_MESSAGE_ID = "framework.exception.InvalidSelect";
|
||||
|
||||
public InvalidSelectException(Object queryParam)
|
||||
public InvalidSelectException(String paramName, Object queryParam)
|
||||
{
|
||||
super(DEFAULT_MESSAGE_ID, new Object[] {queryParam});
|
||||
super(DEFAULT_MESSAGE_ID, new Object[] {queryParam, paramName});
|
||||
}
|
||||
}
|
||||
|
@@ -36,13 +36,21 @@ public class InvalidQueryException extends InvalidArgumentException
|
||||
{
|
||||
private static final long serialVersionUID = 8825573452685077660L;
|
||||
public static String DEFAULT_MESSAGE_ID = "framework.exception.InvalidQuery";
|
||||
|
||||
private Object queryParam;
|
||||
|
||||
public InvalidQueryException() {
|
||||
super(DEFAULT_MESSAGE_ID);
|
||||
}
|
||||
|
||||
|
||||
public InvalidQueryException(Object queryParam)
|
||||
{
|
||||
super(DEFAULT_MESSAGE_ID, new Object[] {queryParam});
|
||||
this.queryParam = queryParam;
|
||||
}
|
||||
|
||||
public Object getQueryParam()
|
||||
{
|
||||
return queryParam;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user