1 package calculator.atoms;
2
3 /**
4 * Exception that will be used when an a cast for one
5 * Atom to another isn't possible
6 * e.g. complex to integer cast
7 */
8 public class IllegalAtomCast extends RuntimeException {
9
10 /**
11 * Default constructor.
12 *
13 * @param s the string of the Exception
14 */
15 public IllegalAtomCast(String s) {
16 super(s);
17 }
18 }