xqddd/Notifications

View on GitHub
src/Exceptions/InvalidNotificationMessageException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Xqddd\Notifications\Exceptions;

use Xqddd\Exceptions\InvalidArgumentException;

/**
 * Exception for invalid notification message
 *
 * @author Andrei Pirjoleanu <andreipirjoleanu@gmail.com>
 * @package Xqddd\Notifications\Exceptions
 */
class InvalidNotificationMessageException extends InvalidArgumentException
{

    /**
     * The exception message
     *
     * @var string
     */
    protected $message = 'Invalid [%s] notification message: [%s] expected - [%s] given.';

    /**
     * The exception code
     *
     * @var int
     */
    protected $code = Codes::INVALID_NOTIFICATION_MESSAGE;

    /**
     * The exception string code
     *
     * @var string
     */
    protected $stringCode = 'INVALID_NOTIFICATION_MESSAGE';
}