Covivo/mobicoop

View on GitHub
api/src/DataProvider/Exception/DataProviderException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * Copyright (c) 2020, MOBICOOP. All rights reserved.
 * This project is dual licensed under AGPL and proprietary licence.
 ***************************
 *    This program is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU Affero General Public License as
 *    published by the Free Software Foundation, either version 3 of the
 *    License, or (at your option) any later version.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU Affero General Public License for more details.
 *
 *    You should have received a copy of the GNU Affero General Public License
 *    along with this program.  If not, see <gnu.org/licenses>.
 ***************************
 *    Licence MOBICOOP described in the file
 *    LICENSE
 **************************/

namespace App\DataProvider\Exception;

use App\Solidary\Entity\SolidaryBeneficiary;
use App\Solidary\Entity\SolidaryVolunteer;

/**
 * @author Maxime Bardot <maxime.bardot@mobicoop.org>
 */
class DataProviderException extends \LogicException
{
    // Conduent
    const ERROR_RETREIVING_TOKEN = "Error retreiving the security token";
    const NO_SECURITY_TOKEN = "No security token found";
    const ERROR_RETREIVING_PROFILE_ID = "Error retreiving the profile id";
    const NO_PROFILE_ID = "No profile id found";
    const ERROR_COLLECTION_RESSOURCE_JOURNEYS="Error retreiving journeys";
    const OUT_OF_BOUND="No trip planning computing possible from this place: The asked origin is out of bound and must be a registered mobility point to recover travel results";
}