1 /******************************************************************************* 2 * Copyright 2012 Internet2 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 ******************************************************************************/ 16 /* 17 * @author mchyzer $Id: GrouperRestInvalidRequest.java,v 1.1 2008-03-25 05:15:11 mchyzer Exp $ 18 */ 19 package edu.internet2.middleware.grouper.ws.rest; 20 21 /** 22 * exception when there is not a valid request from client 23 * this must be called before any response is written 24 */ 25 public class GrouperRestInvalidRequest extends RuntimeException { 26 27 /** 28 * default id 29 */ 30 private static final long serialVersionUID = 1L; 31 32 /** 33 * 34 */ 35 public GrouperRestInvalidRequest() { 36 //empty constructor 37 } 38 39 /** 40 * @param message 41 */ 42 public GrouperRestInvalidRequest(String message) { 43 super(message); 44 } 45 46 /** 47 * @param cause 48 */ 49 public GrouperRestInvalidRequest(Throwable cause) { 50 super(cause); 51 } 52 53 /** 54 * @param message 55 * @param cause 56 */ 57 public GrouperRestInvalidRequest(String message, Throwable cause) { 58 super(message, cause); 59 } 60 61 }