View Javadoc

1   /*
2    * <cvs:source>$Source: /devel/astrogrid/filemanager/client/src/java/org/astrogrid/filemanager/resolver/FileManagerResolverException.java,v $</cvs:source>
3    * <cvs:author>$Author: jdt $</cvs:author>
4    * <cvs:date>$Date: 2005/01/13 17:23:15 $</cvs:date>
5    * <cvs:version>$Revision: 1.3 $</cvs:version>
6    * <cvs:log>
7    *   $Log: FileManagerResolverException.java,v $
8    *   Revision 1.3  2005/01/13 17:23:15  jdt
9    *   merges from dave-dev-200412201250
10   *
11   *   Revision 1.2.4.1  2005/01/12 14:20:57  dave
12   *   Replaced tabs with spaces ....
13   *
14   *   Revision 1.2  2004/11/25 00:20:27  jdt
15   *   Merge from dave-dev-200410061224-200411221626
16   *
17   *   Revision 1.1.2.1  2004/11/18 16:06:11  dave
18   *   Added delegate resolver and tests ....
19   *
20   * </cvs:log>
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     }