-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
core/libraries/Hubzero/Error/Exception/MethodNotAllowedException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* @package framework | ||
* @copyright Copyright (c) 2005-2024 The Regents of the University of California. | ||
* @license http://opensource.org/licenses/MIT MIT | ||
*/ | ||
|
||
namespace Hubzero\Error\Exception; | ||
|
||
/** | ||
* 'Method Not Allowed' Exception. | ||
* Defaults to 405 code. | ||
*/ | ||
class MethodNotAllowedException extends \Exception | ||
{ | ||
/** | ||
* Constructor | ||
* | ||
* @param string $message The Exception message to throw. | ||
* @param integer $code The Exception code. | ||
* @param object $previous The previous exception used for the exception chaining. | ||
* @return void | ||
*/ | ||
public function __construct($message = '', $code = 405, Exception $previous = null) | ||
{ | ||
parent::__construct($message, $code, $previous); | ||
} | ||
} | ||
|