1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
use arithmetic_sign::error::ArithmeticSignError;
use measurements::Angle;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum CivilEngineeringLocationError
{
 #[error("Arithmetic-sign error.")]
 ArithmeticSignError(#[from] ArithmeticSignError),

 #[error("Could not process Nan.; Not a Number")]
 Nan,

 #[error("The value is infinite(NaN|+inf|-inf).")]
 Infinite,

 #[error("The source latitude is not available in the target.; source angle = {0}")]
 LatitudeDomainError(Angle),

 #[error("Could not parse the string to GeoURI.; source = {0:?}")]
 GeoUriParseError(String),

 #[error("Could not parse in Angle::from_iso_80000_1_dms.; source = {0:?}")]
 CouldNotParseFromIso800001Dms(String),

 #[error("")]
 ParseFloatError(#[from] std::num::ParseFloatError),

 #[error("Parse error occured around a sign(+/-).")]
 ParseErrorAroundSign,

 #[error("Could not detect an angle pattern.")]
 CouldNotDetectAnglePattern,

 #[error("Parse error occured around a NWSE.")]
 ParseErrorAroundNwse,

 #[cfg(feature = "ja-JP")]
 #[error("Parse error occured around a NWSE/ja-JP such as 北緯, 西経, 南緯 or 東経.")]
 ParseErrorAroundNwseJaJp,

 #[error("LonLat::from was failed. Unknown source pattern.")]
 LonLatFromStrUnknownPattern
}