SalesforceExceptionEventInterface.php in Salesforce Suite 5.0.x
Same filename and directory in other branches
Namespace
Drupal\salesforce\EventFile
src/Event/SalesforceExceptionEventInterface.phpView source
<?php
namespace Drupal\salesforce\Event;
/**
* Interface for Salesforce Exception events, primarily for logging.
*/
interface SalesforceExceptionEventInterface {
/**
* Getter for exception.
*
* @return \Throwable|null
* The exception or NULL if no exception was given.
*/
public function getException();
/**
* Getter for log level.
*
* @return string
* Severity level for the event. Probably a Drupal\Core\Logger\RfcLogLevel
* or Psr\Log\LogLevel value.
*/
public function getLevel();
/**
* Getter for message string.
*
* @return string
* The message for this event, or a default message.
*/
public function getMessage();
/**
* Getter for message context.
*
* @return array
* The context aka args for this message, suitable for passing to ::log
*/
public function getContext();
}
Interfaces
Name | Description |
---|---|
SalesforceExceptionEventInterface | Interface for Salesforce Exception events, primarily for logging. |