package java.lang {
import java.lang.Arguments;
dynamic public class ArithmeticException extends RuntimeException {
  public function ArithmeticException__Ljava_lang_String_2(explanation: String): Object {
    return this;
  }
  public function ArithmeticException__(): Object {
    return this;
  }
  public function ArithmeticException(... vargs) {
    var args: Array;
    var id: int;
    if (vargs.length == 1 && vargs[0] is Arguments) {
      args = Arguments(vargs[0]).args;
      id = Arguments(vargs[0]).id;
    } else {
      if (vargs.length == 1 && vargs[0] is String) {
        args = vargs;
        id = 0;
      } else if (vargs.length == 0) {
        id = 1;
      }
    }
    switch (id) {
      case 0:
        var args0: Array = [args[0]];
        var superArgs: Arguments;
        superArgs = new Arguments(java.lang.RuntimeException.RuntimeException__Ljava_lang_String_2, [args0[0]]);
        break;
      case 1:
        superArgs = new Arguments(java.lang.RuntimeException.RuntimeException__, []);
        break;
    }
    super(superArgs);
    switch (id) {
      case 0:
        ArithmeticException__Ljava_lang_String_2(args0[0]);
        break;
      case 1:
        ArithmeticException__();
        break;
    }
  }
  public static const ArithmeticException__Ljava_lang_String_2 : int = 0;
  public static const ArithmeticException__ : int = 1;
}
}
