mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 15:06:06 +00:00
type fixes
This commit is contained in:
@@ -31,5 +31,8 @@ namespace Espo\Core\Exceptions;
|
||||
|
||||
class BadRequest extends \Exception
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $code = 400;
|
||||
}
|
||||
|
||||
@@ -34,8 +34,14 @@ use Throwable;
|
||||
|
||||
class Conflict extends Exception implements HasBody
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $code = 409;
|
||||
|
||||
/**
|
||||
* @var ?string
|
||||
*/
|
||||
private $body = null;
|
||||
|
||||
final public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
|
||||
|
||||
@@ -31,5 +31,8 @@ namespace Espo\Core\Exceptions;
|
||||
|
||||
class ConflictSilent extends Conflict
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $logLevel = 'notice';
|
||||
}
|
||||
|
||||
@@ -33,6 +33,9 @@ use Throwable;
|
||||
|
||||
class Error extends InternalServerError implements HasBody
|
||||
{
|
||||
/**
|
||||
* @var ?string
|
||||
*/
|
||||
private $body = null;
|
||||
|
||||
final public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
|
||||
|
||||
@@ -31,5 +31,8 @@ namespace Espo\Core\Exceptions;
|
||||
|
||||
class ErrorSilent extends Error
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $logLevel = 'notice';
|
||||
}
|
||||
|
||||
@@ -31,6 +31,8 @@ namespace Espo\Core\Exceptions;
|
||||
|
||||
class Forbidden extends \Exception
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $code = 403;
|
||||
|
||||
}
|
||||
|
||||
@@ -31,5 +31,8 @@ namespace Espo\Core\Exceptions;
|
||||
|
||||
class ForbiddenSilent extends Forbidden
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $logLevel = 'notice';
|
||||
}
|
||||
|
||||
@@ -31,5 +31,8 @@ namespace Espo\Core\Exceptions;
|
||||
|
||||
class InternalServerError extends \Exception
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $code = 500;
|
||||
}
|
||||
|
||||
@@ -31,5 +31,8 @@ namespace Espo\Core\Exceptions;
|
||||
|
||||
class NotFound extends \Exception
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $code = 404;
|
||||
}
|
||||
|
||||
@@ -31,5 +31,8 @@ namespace Espo\Core\Exceptions;
|
||||
|
||||
class NotFoundSilent extends NotFound
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $logLevel = 'notice';
|
||||
}
|
||||
|
||||
@@ -31,5 +31,8 @@ namespace Espo\Core\Exceptions;
|
||||
|
||||
class ServiceUnavailable extends \Exception
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $code = 503;
|
||||
}
|
||||
|
||||
@@ -31,5 +31,8 @@ namespace Espo\Core\Exceptions;
|
||||
|
||||
class Unauthorized extends \Exception
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $code = 401;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user