mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
28 lines
608 B
PHP
28 lines
608 B
PHP
<?php
|
|
|
|
namespace Chill\MainBundle\Doctrine\Model;
|
|
|
|
use \Exception;
|
|
|
|
/**
|
|
* Description of PointException
|
|
*
|
|
*/
|
|
class PointException extends Exception {
|
|
|
|
public static function badCoordinates($lon, $lat): self
|
|
{
|
|
return new self("Input coordinates are not valid in the used coordinate system (longitude = $lon , latitude = $lat)");
|
|
}
|
|
|
|
public static function badJsonString($str): self
|
|
{
|
|
return new self("The JSON string is not valid: $str");
|
|
}
|
|
|
|
public static function badGeoType(): self
|
|
{
|
|
return new self("The geoJSON object type is not valid");
|
|
}
|
|
}
|