01: /*
02: * $RCSfile: RemoteImagingException.java,v $
03: *
04: * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
05: *
06: * Use is subject to license terms.
07: *
08: * $Revision: 1.1 $
09: * $Date: 2005/02/11 04:57:52 $
10: * $State: Exp $
11: */
12: package javax.media.jai.remote;
13:
14: import javax.media.jai.util.ImagingException;
15:
16: /**
17: * <code>RemoteImagingException</code> is an <code>Exception</code> thrown
18: * to indicate that an error condition was
19: * encountered during remote image processing. All methods which might
20: * encounter error conditions during remote image processing should
21: * be tagged as throwing this exception, as this is something an
22: * application might want to catch.
23: *
24: * <p> From JAI 1.1.2 on, this class is re-parented to
25: * <code>ImagingException</code> which behaves as a chained exception.
26: * Thus, the cause of a <code>RemoteImagingException</code> can be
27: * retrieved by using the method <code>getCause</code>.</p>
28: *
29: * @since JAI 1.1
30: */
31: public class RemoteImagingException extends ImagingException {
32:
33: /**
34: * Constructs a <code>RemoteImagingException</code> with no detail
35: * message. A detail message is a <code>String</code> that describes
36: * this particular exception.
37: */
38: public RemoteImagingException() {
39: super ();
40: }
41:
42: /**
43: * Constructs a <code>RemoteImagingException</code> with the
44: * specified detail message. A detail message is a <code>String</code>
45: * that describes this particular exception.
46: *
47: * @param message the <code>String</code> that contains a detailed message.
48: */
49: public RemoteImagingException(String message) {
50: super (message);
51: }
52:
53: /**
54: * Constructs a <code>RemoteImagingException</code> with the
55: * provided cause.
56: *
57: * @param cause The cause of this <code>RemoteImagingException</code>.
58: *
59: * @since JAI 1.1.2
60: */
61: public RemoteImagingException(Throwable cause) {
62: super (cause);
63: }
64:
65: /**
66: * The constructor to accept the cause of this
67: * <code>RemoteImagingException</code> and the message that
68: * describes the situation.
69: *
70: * @param message The message that describes the situation.
71: * @param cause The cause of this <code>RemoteImagingException</code>
72: *
73: * @since JAI 1.1.2
74: */
75: public RemoteImagingException(String message, Throwable cause) {
76: super(message, cause);
77: }
78: }
|