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