public CorruptIndexException(String message,String resourceDescription,Throwable cause){
  super(Objects.toString(message) + " (resource=" + resourceDescription+ ")",cause);
  this.resourceDescription=resourceDescription;
  this.message=message;
}

public CorruptIndexException ( String message , String resourceDescription , Throwable cause ) { super ( Objects . toString ( message ) + " (resource=" + resourceDescription + ")" , cause ) ; this . resourceDescription = resourceDescription ; this . message = message ; }
create exception with message and root cause .
