Mercurial > hg > LGServices
view src/main/java/de/mpiwg/gazetteer/utils/exceptions/NoAuthorizedException.java @ 50:8f6c47775fe8
new: 'view on LGMap' shown on the existing full text searching list
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 26 Jan 2016 13:41:47 +0100 |
parents | 3e62083dbcbf |
children |
line wrap: on
line source
package de.mpiwg.gazetteer.utils.exceptions; public class NoAuthorizedException extends GazetteerException{ private static final long serialVersionUID = 3483644794781830882L; private static int CODE = 2; private Long userId; private Long branchId; public NoAuthorizedException(Long userId, Long branchId){ this.userId = userId; this.branchId = branchId; } public String getMessage(){ return "NoAuthorizedException: This user " + userId + " is not authorized to modify this branch (" + branchId + ")!"; } public int getCode(){ return CODE; } }