]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman-Common/src/org/splat/exception/UserRightsException.java
Salome HOME
Copyrights update 2015.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / exception / UserRightsException.java
1 package org.splat.exception; 
2
3 import org.splat.common.properties.MessageKeyEnum;
4
5 /**
6  * Exception thrown when the user passed to a method hasn't got rights for required operation.
7  *
8  */
9 public class UserRightsException extends BusinessException {
10
11         /**
12          * Version id for serialization.
13          */
14         private static final long serialVersionUID = -4596111071538834057L;
15         
16         /**
17          * Constructor.
18          * @param user
19          *              the user 
20          * @param operation
21          *              the name of required operation
22          */
23         public UserRightsException(final String userName, final String operation){
24                 super(MessageKeyEnum.USR_000002.toString(), userName, operation);
25         }
26 }