Initial commit: CloudOps infrastructure platform

This commit is contained in:
root
2026-04-09 19:58:57 +02:00
commit 1166a52f26
7762 changed files with 839452 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
<?php
namespace Mautic\PluginBundle\Exception;
use Mautic\LeadBundle\Entity\Lead;
class ApiErrorException extends \Exception
{
private $contactId;
private ?Lead $contact = null;
private string $shortMessage = '';
/**
* @param string $message
* @param int $code
*/
public function __construct($message = 'API error', $code = 0, ?\Exception $previous = null)
{
parent::__construct($message, $code, $previous);
}
/**
* @return mixed
*/
public function getContactId()
{
return $this->contactId;
}
/**
* @param mixed $contactId
*
* @return ApiErrorException
*/
public function setContactId($contactId)
{
$this->contactId = $contactId;
return $this;
}
/**
* @return Lead
*/
public function getContact()
{
return $this->contact;
}
/**
* @return ApiErrorException
*/
public function setContact(Lead $contact)
{
$this->contact = $contact;
return $this;
}
public function getShortMessage(): string
{
return $this->shortMessage;
}
public function setShortMessage(string $shortMessage): ApiErrorException
{
$this->shortMessage = $shortMessage;
return $this;
}
}