All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.molgenis.api.data.v3.NullMrefValueException Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version
package org.molgenis.api.data.v3;

import org.molgenis.data.meta.model.Attribute;
import org.molgenis.util.exception.CodedRuntimeException;

public class NullMrefValueException extends CodedRuntimeException {
  private static final String ERROR_CODE = "DAPI02";

  private final String attributeName;

  NullMrefValueException(Attribute attribute) {
    super(ERROR_CODE);
    this.attributeName = attribute.getName();
  }

  @Override
  public String getMessage() {
    return String.format("attribute:%s", attributeName);
  }

  @Override
  protected Object[] getLocalizedMessageArguments() {
    return new Object[] {attributeName};
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy