View Javadoc

1   /*
2    * #%L
3    * Bitrepository Reference Pillar
4    * 
5    * $Id$
6    * $HeadURL$
7    * %%
8    * Copyright (C) 2010 - 2011 The State and University Library, The Royal Library and The State Archives, Denmark
9    * %%
10   * This program is free software: you can redistribute it and/or modify
11   * it under the terms of the GNU Lesser General Public License as 
12   * published by the Free Software Foundation, either version 2.1 of the 
13   * License, or (at your option) any later version.
14   * 
15   * This program is distributed in the hope that it will be useful,
16   * but WITHOUT ANY WARRANTY; without even the implied warranty of
17   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18   * GNU General Lesser Public License for more details.
19   * 
20   * You should have received a copy of the GNU General Lesser Public 
21   * License along with this program.  If not, see
22   * <http://www.gnu.org/licenses/lgpl-2.1.html>.
23   * #L%
24   */
25  package org.bitrepository.service.exception;
26  
27  import org.bitrepository.bitrepositoryelements.ResponseInfo;
28  
29  /**
30   * Exception which wraps bad response information for the identifications. 
31   */
32  @SuppressWarnings("serial")
33  public class IdentifyContributorException extends RequestHandlerException {
34      /**
35       * Constructor.
36       * @param irInfo The IdentifyResponseInfo for this class to wrap.
37       * @param collectionID The id of the collection. Use 'null' if no collection is relevant.
38       */
39      public IdentifyContributorException(ResponseInfo irInfo, String collectionId) {
40          super(irInfo, collectionId);
41      }
42      
43      /**
44       * Constructor.
45       * @param irInfo The IdentifyResponseInfo for this class to wrap.
46       * @param collectionID The id of the collection. Use 'null' if no collection is relevant.
47       * @param e The exception to wrap into the StackTrace.
48       */
49      public IdentifyContributorException(ResponseInfo irInfo, String collectionId, Exception e) {
50          super(irInfo, collectionId, e);
51      }
52  }