| 1 | package org.farng.mp3; |
| 2 | |
| 3 | import java.io.ObjectInputStream; |
| 4 | import java.io.ObjectOutputStream; |
| 5 | |
| 6 | /** |
| 7 | * This is the exception that is always generated by any class in these packages. |
| 8 | * |
| 9 | * @author Eric Farng |
| 10 | * @version $Revision: 1.1 $ |
| 11 | */ |
| 12 | public class TagException extends Exception { |
| 13 | |
| 14 | /** |
| 15 | * Creates a new TagException object. |
| 16 | */ |
| 17 | public TagException() { |
| 18 | super(); |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Creates a new TagException object. |
| 23 | */ |
| 24 | public TagException(final Throwable exception) { |
| 25 | super(exception); |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Creates a new TagException object. |
| 30 | * |
| 31 | * @param message the detail message. |
| 32 | */ |
| 33 | public TagException(final String message) { |
| 34 | super(message); |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Creates a new TagException object. |
| 39 | */ |
| 40 | public TagException(final String message, final Throwable exception) { |
| 41 | super(message, exception); |
| 42 | } |
| 43 | |
| 44 | private void writeObject(final ObjectOutputStream out) { |
| 45 | throw new UnsupportedOperationException("Cannot write to Output Stream: " + out.toString()); |
| 46 | } |
| 47 | |
| 48 | private void readObject(final ObjectInputStream in) { |
| 49 | throw new UnsupportedOperationException("Cannot read from Input Stream: " + in.toString()); |
| 50 | } |
| 51 | } |