Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / apphosting / api / DeadlineExceededException.java
blobabee2bc3feacdcacb0511864f2f6405b9723e35d
1 // Copyright 2007 Google Inc. All rights reserved.
3 package com.google.apphosting.api;
5 /**
6 * {@code DeadlineExceededException} is an unchecked exception thrown
7 * whenever a request has exceeded the request deadline (e.g. 60 seconds
8 * in the case of a default instance).
10 * <p>It will typically be thrown from API methods that did not finish
11 * by the deadline. However, this exception may also be thrown <b>at
12 * any time</b>, at any arbitrary point in the execution of your
13 * code.</p>
15 * An application may catch {@code DeadlineExceededException} to
16 * perform cleanup, but it must finish execution shortly afterwards.
17 * If the application delays too long, an uncatchable {@code Error} is
18 * thrown to force termination of the request with extreme prejudice.
21 public class DeadlineExceededException extends RuntimeException {
22 public DeadlineExceededException() {
23 super();
26 public DeadlineExceededException(String message) {
27 super(message);