1 package org.petify.image.exception; 2 3 public class MaxImagesReachedException extends RuntimeException { 4 public MaxImagesReachedException(Long id, String entityType) { 5 super("Entity with entityType " + entityType + " and id " + id + " reached max images (5)."); 6 } 7 }