import java.io.*;
import java.lang.*;
//Testing tank
public class testIllegalParam {
  public static void main(String[] argn) {
    try {
      Tank t = new Tank();
      System.out.println("tank content = "+t.content());
      t.add(-1);
      System.out.println("Illegal Argument Exception not handled");
    }
	catch (IllegalArgumentException e) {
		System.err.println("Can't add negative amounts");
	}
	catch (Tank.TankOverFlowException e) {
		System.err.println("Tank overflow by "+e.overflow);
	}
  }
}
