public static IgfsException newIgfsException(Class<? extends IgfsException> cls,String msg,Throwable cause){
  try {
    Constructor<? extends IgfsException> ctor=cls.getConstructor(String.class,Throwable.class);
    return ctor.newInstance(msg,cause);
  }
 catch (  ReflectiveOperationException e) {
    throw new IgniteException("Failed to create IGFS exception: " + cls.getName(),e);
  }
}

public static IgfsException newIgfsException ( Class < ? extends IgfsException > cls , String msg , Throwable cause ) { try { Constructor < ? extends IgfsException > ctor = cls . getConstructor ( String . class , Throwable . class ) ; return ctor . newInstance ( msg , cause ) ; } catch ( ReflectiveOperationException e ) { throw new IgniteException ( "Failed to create IGFS exception: " + cls . getName ( ) , e ) ; } }
construct new igfs exception passing specified message and cause .
