Skip to content

Commit

Permalink
add MethodNotAllowedException class
Browse files Browse the repository at this point in the history
  • Loading branch information
nkissebe committed Sep 11, 2024
1 parent dd8a5ec commit e3970c8
Showing 1 changed file with 29 additions and 0 deletions.
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);
}
}

0 comments on commit e3970c8

Please sign in to comment.