You are here

MessageException.php in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

File

src/Flmngr/FileUploaderServer/lib/MessageException.php
View source
<?php

namespace Drupal\n1ed\Flmngr\FileUploaderServer\lib;

use Exception;

/**
 * Exception with a message.
 * Thrown when we need to return JSON about the error.
 */
class MessageException extends Exception {
  protected $message;

  /**
   * {@inheritdoc}
   */
  public function __construct($message) {
    parent::__construct();
    $this->message = (array) $message;
  }

  /**
   * Gets fail message.
   */
  public function getFailMessage() {
    return $this->message;
  }

}

Classes

Namesort descending Description
MessageException Exception with a message. Thrown when we need to return JSON about the error.