feat: add Snipe-IT asset synchronization
This commit is contained in:
11
app/Integrations/SnipeIt/Exceptions/SnipeItApiException.php
Normal file
11
app/Integrations/SnipeIt/Exceptions/SnipeItApiException.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\SnipeIt\Exceptions;
|
||||
|
||||
class SnipeItApiException extends SnipeItException
|
||||
{
|
||||
public function __construct(string $message, public readonly ?int $statusCode = null)
|
||||
{
|
||||
parent::__construct($message);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\SnipeIt\Exceptions;
|
||||
|
||||
class SnipeItConfigurationException extends SnipeItException {}
|
||||
7
app/Integrations/SnipeIt/Exceptions/SnipeItException.php
Normal file
7
app/Integrations/SnipeIt/Exceptions/SnipeItException.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\SnipeIt\Exceptions;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
class SnipeItException extends RuntimeException {}
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace App\Integrations\SnipeIt\Exceptions;
|
||||
|
||||
class SnipeItMappingException extends SnipeItException {}
|
||||
Reference in New Issue
Block a user