1 package net.trajano.twiff;
2
3 /***
4 * Subclass of {@link net.trajano.twiff.TwiffException} when there is an object
5 * that is not processed.
6 *
7 * @author Archimedes Trajano
8 */
9 public class UnprocessedException extends TwiffException {
10 /***
11 * Construct a new exception specifying the unprocessed object.
12 *
13 * @param unprocessedObject
14 * the unprocessed object.
15 */
16 public UnprocessedException(final Object unprocessedObject) {
17 super(unprocessedObject.toString());
18 this.unprocessedObject = unprocessedObject;
19 }
20
21 /***
22 * The unprocessed object.
23 */
24 private final Object unprocessedObject;
25
26 /***
27 * Returns the unprocessed object.
28 *
29 * @return The unprocessed object.
30 */
31 public final Object getUnprocessedObject() {
32 return unprocessedObject;
33 }
34 }