mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-01 05:44:41 +03:00
Fix name of the \Mibew\RequestProcessor\ProcessorException class
This commit is contained in:
parent
10b8d4b2e4
commit
12f5b7dbd3
@ -20,7 +20,7 @@ namespace Mibew\RequestProcessor\Exception;
|
||||
/**
|
||||
* Class for {@link \Mibew\RequestProcessor\InviteRequestProcessor} exceptions
|
||||
*/
|
||||
class InviteProcessorException extends RequestProcessorException {
|
||||
class InviteProcessorException extends ProcessorException {
|
||||
/**
|
||||
* Operator is not logged in
|
||||
*/
|
||||
|
@ -18,9 +18,9 @@
|
||||
namespace Mibew\RequestProcessor\Exception;
|
||||
|
||||
/**
|
||||
* Class for {@link \Mibew\RequestProcessor\RequestProcessor} exceptions.
|
||||
* Class for {@link \Mibew\RequestProcessor\Processor} exceptions.
|
||||
*/
|
||||
class RequestProcessorException extends \Exception {
|
||||
class ProcessorException extends \Exception {
|
||||
/**
|
||||
* Wrong function arguments
|
||||
*/
|
||||
|
@ -20,7 +20,7 @@ namespace Mibew\RequestProcessor\Exception;
|
||||
/**
|
||||
* Class for {@link \Mibew\RequestProcessor\ThreadProcessor} exceptions.
|
||||
*/
|
||||
class ThreadProcessorException extends RequestProcessorException {
|
||||
class ThreadProcessorException extends ProcessorException {
|
||||
/**
|
||||
* 'recipient' argument is not set
|
||||
*/
|
||||
|
@ -20,7 +20,7 @@ namespace Mibew\RequestProcessor\Exception;
|
||||
/**
|
||||
* Class for {@link \Mibew\RequestProcessor\UsersProcessor} exceptions
|
||||
*/
|
||||
class UsersProcessorException extends RequestProcessorException {
|
||||
class UsersProcessorException extends ProcessorException {
|
||||
/**
|
||||
* Operator is not logged in
|
||||
*/
|
||||
|
@ -20,7 +20,7 @@ namespace Mibew\RequestProcessor;
|
||||
// Import namespaces and classes of the core
|
||||
use Mibew\Database;
|
||||
use Mibew\EventDispatcher;
|
||||
use Mibew\RequestProcessor\Exception\RequestProcessorException;
|
||||
use Mibew\RequestProcessor\Exception\ProcessorException;
|
||||
|
||||
/**
|
||||
* Implements abstract class for request processing
|
||||
@ -268,9 +268,9 @@ abstract class Processor {
|
||||
try {
|
||||
// Check functions to call
|
||||
if (! is_array($functions)) {
|
||||
throw new RequestProcessorException(
|
||||
throw new ProcessorException(
|
||||
'#1 argument must be an array!',
|
||||
RequestProcessorException::WRONG_ARGUMENTS
|
||||
ProcessorException::WRONG_ARGUMENTS
|
||||
);
|
||||
}
|
||||
foreach ($functions as $function) {
|
||||
@ -465,7 +465,7 @@ abstract class Processor {
|
||||
if (is_callable(array($this, $method_name))) {
|
||||
try {
|
||||
$func['results'] = $this->$method_name($func['arguments']);
|
||||
} catch(RequestProcessorException $e) {
|
||||
} catch(ProcessorException $e) {
|
||||
$func['results'] = array(
|
||||
'errorCode' => $e->getCode(),
|
||||
'errorMessage' => $e->getMessage()
|
||||
|
Loading…
Reference in New Issue
Block a user