This commit is contained in:
Yuri Kuznetsov
2023-01-01 14:03:50 +02:00
parent 353246281c
commit 03a79ddefe
2 changed files with 7 additions and 1 deletions
@@ -37,7 +37,6 @@ use Espo\ORM\Entity;
class CurrencyType extends FloatType
{
private const DEFAULT_PRECISION = 13;
private const DEFAULT_SCALE = 4;
public function __construct(private Config $config) {}
@@ -29,12 +29,19 @@
namespace Espo\Core\Exceptions;
use Throwable;
class ServiceUnavailable extends \Exception implements HasBody
{
/** @var int */
protected $code = 503;
private ?string $body = null;
final public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
/**
* Create with a body (supposed to be sent to the frontend).
*/