You are here

public function BynderException::__construct in Bynder 8.2

Same name and namespace in other branches
  1. 8.3 src/Exception/BynderException.php \Drupal\bynder\Exception\BynderException::__construct()
  2. 8 src/Exception/BynderException.php \Drupal\bynder\Exception\BynderException::__construct()
  3. 4.0.x src/Exception/BynderException.php \Drupal\bynder\Exception\BynderException::__construct()

Constructs BundleNotExistException.

9 calls to BynderException::__construct()
BrandNotSetException::__construct in src/Exception/BrandNotSetException.php
Constructs BrandNotSetException.
BundleNotBynderException::__construct in src/Exception/BundleNotBynderException.php
Constructs BundleNotBynderException.
BundleNotExistException::__construct in src/Exception/BundleNotExistException.php
Constructs BundleNotExistException.
TagSearchException::__construct in src/Exception/TagSearchException.php
Constructs TagSearchException.
UnableToAddUsageException::__construct in modules/bynder_usage/src/Exception/UnableToAddUsageException.php
Constructs UnableToAddUsageException.

... See full list

9 methods override BynderException::__construct()
BrandNotSetException::__construct in src/Exception/BrandNotSetException.php
Constructs BrandNotSetException.
BundleNotBynderException::__construct in src/Exception/BundleNotBynderException.php
Constructs BundleNotBynderException.
BundleNotExistException::__construct in src/Exception/BundleNotExistException.php
Constructs BundleNotExistException.
TagSearchException::__construct in src/Exception/TagSearchException.php
Constructs TagSearchException.
UnableToAddUsageException::__construct in modules/bynder_usage/src/Exception/UnableToAddUsageException.php
Constructs UnableToAddUsageException.

... See full list

File

src/Exception/BynderException.php, line 47

Class

BynderException
Base exception class for Bynder.

Namespace

Drupal\bynder\Exception

Code

public function __construct($message, $admin_message = NULL, $log_message = NULL, $log_message_args = []) {
  $this->adminMessage = $admin_message ?: $message;
  $this->logMessage = $log_message ?: $this->adminMessage;
  $this->logMessageArgs = $log_message_args;
  parent::__construct($message);
}