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

gov.nasa.pds.api.registry.model.exceptions.RegistryApiException Maven / Gradle / Ivy

There is a newer version: 4.5.6
Show newest version
package gov.nasa.pds.api.registry.model.exceptions;

import java.util.UUID;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class RegistryApiException extends Exception {
  private static final long serialVersionUID = 202822323640754980L;


  private static final Logger log = LoggerFactory.getLogger(RegistryApiException.class);


  private String uuid;

  public RegistryApiException(String msg) {

    super(msg);
    UUID uuidObj = UUID.randomUUID();
    this.uuid = uuidObj.toString();

    log.info(this.uuid + " " + msg);



  }

  public String getUuid() {
    return this.uuid;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy