public AlgorithmException(Algorithm algorithm,Throwable cause){
  this(algorithm,cause.getMessage(),cause);
}

public AlgorithmException ( Algorithm algorithm , Throwable cause ) { this ( algorithm , cause . getMessage ( ) , cause ) ; }
constructs an algorithm exception originating from the specified algorithm with the given cause .
