001package org.w3.ldp.testsuite.exception; 002 003import org.w3.ldp.testsuite.http.HttpMethod; 004 005import java.io.PrintWriter; 006 007public class SkipMethodNotAllowedException extends SkipException { 008 private static final long serialVersionUID = 1L; 009 010 public SkipMethodNotAllowedException(String test, HttpMethod method, PrintWriter skipLog) { 011 super(test, "Skipping test since method " + method.getName() + 012 " is not allowed. This HTTP method is needed for this test.", skipLog); 013 } 014 015 public SkipMethodNotAllowedException(String test, String uri, HttpMethod method, PrintWriter skipLog) { 016 super(test, "Skipping test since <" + uri + "> has not advertised " + method.getName() + 017 " support through its HTTP OPTIONS response. This HTTP method is needed for this test.", skipLog); 018 } 019 020}