spotonlive/laravel-podio

View on GitHub
src/SpotOnLive/LaravelPodio/Exceptions/ConfigurationException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace SpotOnLive\LaravelPodio\Exceptions;

use Exception;

class ConfigurationException extends Exception
{
    /**
     * Throw new exception with message
     *
     * @param string $message
     * @throws ConfigurationException
     */
    public static function message($message)
    {
        throw new ConfigurationException($message);
    }

    /**
     * No configuration for application
     *
     * @param string $appName
     * @throws ConfigurationException
     */
    public static function missingApp($appName)
    {
        throw new ConfigurationException(
            sprintf(
                'No configuration for application %s',
                $appName
            )
        );
    }
}