/** * Constructor * * @param theMessage * The message * @param theAllowedMethods * A list of allowed methods (see {@link #setAllowedMethods(RequestTypeEnum...)} ) */ public MethodNotAllowedException(String theMessage, RequestTypeEnum... theAllowedMethods) { super(STATUS_CODE, theMessage); setAllowedMethods(theAllowedMethods); }
/** * Constructor * * @param theMessage * The message * @param theOperationOutcome * The OperationOutcome resource to return to the client * @param theAllowedMethods * A list of allowed methods (see {@link #setAllowedMethods(RequestTypeEnum...)} ) */ public MethodNotAllowedException(String theMessage, IBaseOperationOutcome theOperationOutcome, RequestTypeEnum... theAllowedMethods) { super(STATUS_CODE, theMessage, theOperationOutcome); setAllowedMethods(theAllowedMethods); }
/** * Constructor * * @param theMessage * The message * @param theAllowedMethods * A list of allowed methods (see {@link #setAllowedMethods(RequestTypeEnum...)} ) */ public MethodNotAllowedException(String theMessage, RequestTypeEnum... theAllowedMethods) { super(STATUS_CODE, theMessage); setAllowedMethods(theAllowedMethods); }
/** * Constructor * * @param theMessage * The message * @param theOperationOutcome * The OperationOutcome resource to return to the client * @param theAllowedMethods * A list of allowed methods (see {@link #setAllowedMethods(RequestTypeEnum...)} ) */ public MethodNotAllowedException(String theMessage, IBaseOperationOutcome theOperationOutcome, RequestTypeEnum... theAllowedMethods) { super(STATUS_CODE, theMessage, theOperationOutcome); setAllowedMethods(theAllowedMethods); }