throwIfNotExists method

void throwIfNotExists()

Implementation

void throwIfNotExists() {
  if (!exists) {
    throw new ArtworkNotFoundException();
  }
}