File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3232
3333namespace ElementaryFramework \WaterPipe ;
3434
35- use ElementaryFramework \WaterPipe \Exceptions \InternalServerErrorException ;
35+ use ElementaryFramework \WaterPipe \Exceptions \UnsupportedRequestMethodException ;
3636use ElementaryFramework \WaterPipe \Exceptions \NotFoundErrorException ;
3737use ElementaryFramework \WaterPipe \HTTP \Request \Request ;
3838use ElementaryFramework \WaterPipe \HTTP \Request \RequestMethod ;
@@ -358,7 +358,7 @@ private function _executeRequest()
358358 case RequestMethod::UNKNOWN :
359359 if (isset ($ this ->_errorsRegistry [500 ]))
360360 return $ this ->_executeAction ($ this ->_errorsRegistry [500 ]);
361- else throw new InternalServerErrorException ();
361+ else throw new UnsupportedRequestMethodException ();
362362
363363 case RequestMethod::GET :
364364 $ registry = $ this ->_getRequestRegistry ;
You can’t perform that action at this time.
0 commit comments