doorcardpass && door move manager logging

This commit is contained in:
Schneider Roland
2023-02-11 14:32:17 +01:00
parent 4d44b1c2af
commit fe0dd00145
14 changed files with 726 additions and 205 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace common\components;
class FitnessException extends \Exception {
const TYPE_BAD_REQUEST = "BAD_REQUEST";
const UNKNOWN_ERROR = "UNKNOWN_ERROR";
public $errorCode;
public $type;
public $payload;
public $originalException;
public function __construct( $message, $type = FitnessException::TYPE_BAD_REQUEST, $errorCode = null, $payload = null, $originalException= null) {
parent::__construct();
$this->message = $message;
$this->type = $type;
$this->errorCode = $errorCode;
$this->payload = $payload;
$this->originalException = $originalException;
}
}