You are here

CalendarEventExceptionLoggerTrait.php in Opigno calendar event 3.x

Same filename and directory in other branches
  1. 8 src/CalendarEventExceptionLoggerTrait.php

File

src/CalendarEventExceptionLoggerTrait.php
View source
<?php

namespace Drupal\opigno_calendar_event;


/**
 * Logs exceptions thrown in the the Calendar Event codebase.
 *
 * @internal
 */
trait CalendarEventExceptionLoggerTrait {

  /**
   * Logs an exception.
   *
   * @param \Exception $e
   *   The exception object to be logged.
   */
  protected function logException(\Exception $e) {
    watchdog_exception('opigno_calendar_event', $e);
  }

}

Traits

Namesort descending Description
CalendarEventExceptionLoggerTrait Logs exceptions thrown in the the Calendar Event codebase.