Mercurial > hg > LGServer
view src/main/java/de/mpiwg/gazetteer/utils/exceptions/NoAuthorizedException.java @ 0:7682c04c63a8
First commit of the source code!
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Tue, 10 Mar 2015 14:50:41 +0100 |
parents | |
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; } }