01: package com.sabre.security.jndi;
02:
03: import java.util.Map;
04: import java.util.HashMap;
05:
06: /**
07: * Created by IntelliJ IDEA.
08: * User: sg897500
09: * Date: Oct 14, 2005
10: * Time: 3:14:31 PM
11: * To change this template use File | Settings | File Templates.
12: */
13: public class AuthenticationException extends Exception {
14: private Map errorByModule = new HashMap();
15:
16: public AuthenticationException() {
17: }
18:
19: public AuthenticationException(String message) {
20: super (message);
21: errorByModule.put("Default", message);
22: }
23:
24: public AuthenticationException(String message, Throwable cause) {
25: super (message, cause);
26: errorByModule.put("", message);
27: }
28:
29: public AuthenticationException(Throwable cause) {
30: super (cause);
31: }
32:
33: public AuthenticationException(Map errorByModule) {
34: this .errorByModule = errorByModule;
35: }
36:
37: public Map getErrorsByModule() {
38: return this.errorByModule;
39: }
40:
41: }
|