You are here

public function BynderException::__construct in Bynder 8

Same name and namespace in other branches
  1. 8.3 src/Exception/BynderException.php \Drupal\bynder\Exception\BynderException::__construct()
  2. 8.2 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 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 src/Exception/UnableToAddUsageException.php
Constructs UnableToAddUsageException.

... See full list

File

src/Exception/BynderException.php, line 53

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);
}