public IgniteSpiMultiException(String msg,@Nullable Throwable cause,@Nullable Collection<Throwable> nestedCauses){
  super(msg,cause);
  if (nestedCauses != null)   causes.addAll(nestedCauses);
}

public IgniteSpiMultiException ( String msg , @ Nullable Throwable cause , @ Nullable Collection < Throwable > nestedCauses ) { super ( msg , cause ) ; if ( nestedCauses != null ) causes . addAll ( nestedCauses ) ; }
creates new exception with given error message and optional nested exception .
