@Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null || getClass() != obj.getClass()) {
      return false;
    }
    FileStoreException that = (FileStoreException) obj;
    return this.getMessage().equals(that.getMessage()) && this.error == that.error;
  }
Overridden equals method to compare two FileStoreException objects.
ambry-api/src/main/java/com/github/ambry/store/FileStoreException.java