defaultForWithBeautifulError<T> static method

Generator<T> defaultForWithBeautifulError<T>(
  1. int numGladosArgs,
  2. int typeIndex
)

Implementation

static Generator<T> defaultForWithBeautifulError<T>(
  int numGladosArgs,
  int typeIndex,
) {
  try {
    return defaultFor<T>();
  } on InternalNoGeneratorFound {
    throw NoGeneratorFound(numGladosArgs, typeIndex, T);
  }
}