View Javadoc

1   /*
2    * <cvs:source>$Source: /devel/astrogrid/filestore/client/src/java/org/astrogrid/filestore/resolver/FileStoreResolverException.java,v $</cvs:source>
3    * <cvs:author>$Author: dave $</cvs:author>
4    * <cvs:date>$Date: 2004/07/23 09:11:16 $</cvs:date>
5    * <cvs:version>$Revision: 1.2 $</cvs:version>
6    * <cvs:log>
7    *   $Log: FileStoreResolverException.java,v $
8    *   Revision 1.2  2004/07/23 09:11:16  dave
9    *   Merged development branch, dave-dev-200407221513, into HEAD
10   *
11   *   Revision 1.1.2.2  2004/07/23 04:09:02  dave
12   *   Fixed resolver bugs
13   *
14   *   Revision 1.1.2.1  2004/07/23 03:09:00  dave
15   *   Added new resolver
16   *
17   * </cvs:log>
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 	}