All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ucar.units.RaiseException Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 1998-2018 University Corporation for Atmospheric Research/Unidata
 * See LICENSE for license information.
 */
package ucar.units;

/**
 * Provides support for failure to raise a unit to a power.
 * 
 * @author Steven R. Emmerson
 */
public final class RaiseException extends OperationException {
  private static final long serialVersionUID = 1L;

  /**
   * Constructs from the unit that couldn't be raised to a power.
   * 
   * @param unit
   *        The unit that couldn't be raised to a power.
   */
  public RaiseException(final Unit unit) {
    super("Can't exponentiate unit \"" + unit + "\"");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy