herpaderpaldent/seat-groups

View on GitHub
src/Exceptions/MissingMainCharacterException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Herpaderpaldent\Seat\SeatGroups\Exceptions;

use Exception;
use Seat\Web\Models\Group;

class MissingMainCharacterException extends Exception
{
    public function __construct(Group $group)
    {
        $message = sprintf('The group with ID %d does not have a main character set, ' .
            'or related character information is missing.', $group->id);

        parent::__construct($message, 0, null);
    }
}