You are here

public function SalesforceExceptionEvent::__construct in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 src/Event/SalesforceExceptionEvent.php \Drupal\salesforce\Event\SalesforceExceptionEvent::__construct()
  2. 8.3 src/Event/SalesforceExceptionEvent.php \Drupal\salesforce\Event\SalesforceExceptionEvent::__construct()

SalesforceExceptionEvent constructor.

Parameters

string $level: Values are RfcLogLevel::NOTICE, RfcLogLevel::WARNING, RfcLogLevel::ERROR.

\Throwable|null $e: A related Exception, if available.

string $message: The translatable message string, suitable for t().

array $context: Parameter array suitable for t(), to be translated for $message.

3 calls to SalesforceExceptionEvent::__construct()
SalesforceErrorEvent::__construct in src/Event/SalesforceErrorEvent.php
SalesforceExceptionEvent constructor.
SalesforceNoticeEvent::__construct in src/Event/SalesforceNoticeEvent.php
SalesforceExceptionEvent constructor.
SalesforceWarningEvent::__construct in src/Event/SalesforceWarningEvent.php
SalesforceExceptionEvent constructor.
3 methods override SalesforceExceptionEvent::__construct()
SalesforceErrorEvent::__construct in src/Event/SalesforceErrorEvent.php
SalesforceExceptionEvent constructor.
SalesforceNoticeEvent::__construct in src/Event/SalesforceNoticeEvent.php
SalesforceExceptionEvent constructor.
SalesforceWarningEvent::__construct in src/Event/SalesforceWarningEvent.php
SalesforceExceptionEvent constructor.

File

src/Event/SalesforceExceptionEvent.php, line 50

Class

SalesforceExceptionEvent
Base class for Salesforce Exception events, primarily for logging.

Namespace

Drupal\salesforce\Event

Code

public function __construct($level, \Throwable $e = NULL, $message = '', array $context = []) {
  $this->exception = $e;
  $this->level = $level;
  $this->message = $message;
  $this->context = $context;
}