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

pl.allegro.tech.hermes.domain.group.GroupNotExistsException Maven / Gradle / Ivy

The newest version!
package pl.allegro.tech.hermes.domain.group;

import pl.allegro.tech.hermes.api.ErrorCode;
import pl.allegro.tech.hermes.common.exception.HermesException;

public class GroupNotExistsException extends HermesException {

  public GroupNotExistsException(String groupName, Exception exception) {
    super(String.format("Group %s does not exist", groupName), exception);
  }

  public GroupNotExistsException(String groupName) {
    this(groupName, null);
  }

  @Override
  public ErrorCode getCode() {
    return ErrorCode.GROUP_NOT_EXISTS;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy