public CorruptIndexException(String message,DataInput input,Throwable cause){
  this(message,Objects.toString(input),cause);
}

public CorruptIndexException ( String message , DataInput input , Throwable cause ) { this ( message , Objects . toString ( input ) , cause ) ; }
create exception with message and root cause .
