You are here

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

Same name and namespace in other branches
  1. 8.4 src/Event/SalesforceWarningEvent.php \Drupal\salesforce\Event\SalesforceWarningEvent::__construct()
  2. 8.3 src/Event/SalesforceWarningEvent.php \Drupal\salesforce\Event\SalesforceWarningEvent::__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.

Overrides SalesforceExceptionEvent::__construct

File

src/Event/SalesforceWarningEvent.php, line 15

Class

SalesforceWarningEvent
Warning event.

Namespace

Drupal\salesforce\Event

Code

public function __construct(\Throwable $e = NULL, $message = '', array $args = []) {
  parent::__construct(RfcLogLevel::WARNING, $e, $message, $args);
}