StoryResourceNotFound.java

  1. package org.jbehave.core.io;

  2. import java.util.List;

  3. /**
  4.  * Thrown when a story resource is not found
  5.  */
  6. @SuppressWarnings("serial")
  7. public class StoryResourceNotFound extends RuntimeException {

  8.     public StoryResourceNotFound(String storyPath, ClassLoader classLoader) {
  9.         super("Story path '" + storyPath + "' not found by class loader " + classLoader);
  10.     }

  11.     public StoryResourceNotFound(String storyPath, List<String> traversalPaths) {
  12.         super("Story path '" + storyPath + "' not found while looking in '" + traversalPaths + "'");
  13.     }

  14. }