• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2009 The Android Open Source Project.
2 
3 package com.google.wireless.gdata2.client;
4 
5 import com.google.wireless.gdata2.GDataException;
6 
7 /**
8  * Exception thrown when a retrieval fails because the specified ETag matches
9  * the current ETag on the entry (which implies that the entry has not changed
10  * on the server since it was last retrieved).
11  */
12 public class ResourceNotModifiedException extends GDataException {
13 
14   /**
15    * Creates a new ResourceNotModifiedException.
16    */
ResourceNotModifiedException()17   public ResourceNotModifiedException() {
18   }
19 
20   /**
21    * Creates a new ResourceNotModifiedException with a supplied message.
22    * @param message The message for the exception.
23    */
ResourceNotModifiedException(String message)24   public ResourceNotModifiedException(String message) {
25     super(message);
26   }
27 
28   /**
29    * Creates a new ResourceNotModifiedException with a supplied message and
30    * underlying cause.
31    *
32    * @param message The message for the exception.
33    * @param cause Another throwable that was caught and wrapped in this
34    * exception.
35    */
ResourceNotModifiedException(String message, Throwable cause)36   public ResourceNotModifiedException(String message, Throwable cause) {
37     super(message, cause);
38   }
39 }
40