Mercurial > hg > LGServices
view src/main/java/de/mpiwg/gazetteer/utils/exceptions/NoAuthorizedException.java @ 105:16a0796e3871 default tip
remove "console.log" from general.js
author | Calvin Yeh <cyeh@mpipw-berlin.mpg.com> |
---|---|
date | Fri, 29 Sep 2017 16:18:02 +0200 |
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; } }