1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package org.astrogrid.filemanager.resolver ;
24
25 import org.astrogrid.store.Ivorn ;
26
27 import org.astrogrid.filemanager.common.exception.FileManagerException ;
28
29 /***
30 * An Exception thrown if there is a problem with the service resolver.
31 *
32 */
33 public class FileManagerResolverException
34 extends FileManagerException
35 {
36
37 /***
38 * The identifier that caused the Exception.
39 *
40 */
41 private String ident ;
42
43 /***
44 * Access to our ident.
45 *
46 */
47 public String getIdent()
48 {
49 return this.ident ;
50 }
51
52 /***
53 * Public constructor.
54 *
55 */
56 public FileManagerResolverException()
57 {
58 super() ;
59 }
60
61 /***
62 * Public constructor.
63 * @param message The exception message.
64 *
65 */
66 public FileManagerResolverException(String message)
67 {
68 super(message) ;
69 }
70
71 /***
72 * Public constructor.
73 * @param message The exception message.
74 * @param ivorn The service identifier that caused the Exception.
75 *
76 */
77 public FileManagerResolverException(String message, Ivorn ivorn)
78 {
79 this(message, ivorn.toString()) ;
80 }
81
82 /***
83 * Public constructor.
84 * @param message The exception message.
85 * @param ident The service identifier that caused the Exception.
86 *
87 */
88 public FileManagerResolverException(String message, String ident)
89 {
90 this(message) ;
91 this.ident = ident ;
92 }
93
94 /***
95 * Public constructor.
96 * @param message The exception message.
97 * @param cause The original cause.
98 *
99 */
100 public FileManagerResolverException(String message, Throwable cause)
101 {
102 super(message, cause) ;
103 }
104
105 }