You are here

function Exception::Log in Realistic Dummy Content 8

Overrides Exception::Log

1 call to Exception::Log()
Exception::__construct in api/src/loggers/Exception.php
1 method overrides Exception::Log()
Exception::Log in api/src/loggers/Exception.php

File

api/src/loggers/Exception.php, line 28
Define autoload class.

Class

Exception
An \Exception.

Namespace

Drupal\realistic_dummy_content_api\loggers

Code

function Log() {
  $message = $this
    ->getMessage() . ' (' . $this
    ->GetCaller() . ' called ' . $this
    ->GetCalled() . ')';
  debug($message);
  if (\Drupal::moduleHandler()
    ->moduleExists('devel')) {
    dpm($message);
  }
}