package java.lang {
import java.lang.Arguments;
dynamic public class ClassNotFoundException extends Exception {
  public function ClassNotFoundException__(): Object {
    return this;
  }
  public function ClassNotFoundException__Ljava_lang_String_2(message: String): Object {
    return this;
  }
  public function ClassNotFoundException__Ljava_lang_String_2Ljava_lang_Throwable_2(message: String, ex: Throwable): Object {
    return this;
  }
  public function ClassNotFoundException(... 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 == 0) {
        id = 0;
      } else if (vargs.length == 1 && vargs[0] is String) {
        args = vargs;
        id = 1;
      } else if (vargs.length == 2 && vargs[0] is String && vargs[1] is Throwable) {
        args = vargs;
        id = 2;
      }
    }
    switch (id) {
      case 0:
        var superArgs: Arguments;
        superArgs = new Arguments(java.lang.Exception.Exception__, []);
        break;
      case 1:
        var args1: Array = [args[0]];
        superArgs = new Arguments(java.lang.Exception.Exception__Ljava_lang_String_2, [args1[0]]);
        break;
      case 2:
        var args2: Array = [args[0], args[1]];
        superArgs = new Arguments(java.lang.Exception.Exception__Ljava_lang_String_2Ljava_lang_Throwable_2, [args2[0], args2[1]]);
        break;
    }
    super(superArgs);
    switch (id) {
      case 0:
        ClassNotFoundException__();
        break;
      case 1:
        ClassNotFoundException__Ljava_lang_String_2(args1[0]);
        break;
      case 2:
        ClassNotFoundException__Ljava_lang_String_2Ljava_lang_Throwable_2(args2[0], args2[1]);
        break;
    }
  }
  public static const ClassNotFoundException__ : int = 0;
  public static const ClassNotFoundException__Ljava_lang_String_2 : int = 1;
  public static const ClassNotFoundException__Ljava_lang_String_2Ljava_lang_Throwable_2 : int = 2;
}
}
