Enum PmsiError
pub enum PmsiError {
FichierIntrouvable {
chemin: String,
},
ExtensionInconnue {
extension: String,
champ: String,
},
AnneeInvalide {
annee: String,
},
Polars(PolarsError),
Io(Error),
Json(Error),
ParsingPmsi {
message: String,
},
FormatInconnu {
format: String,
},
XlsxTropGrand {
nb_lignes: usize,
nb_colonnes: usize,
},
Requete {
message: String,
},
Autre(String),
}Variants§
FichierIntrouvable
Le fichier PMSI est introuvable ou vide.
Fichier introuvable ou vide : ~/Documents/data/mco/290000017.2024.12.rsaExtensionInconnue
L’extension PMSI n’est pas reconnue.
Extension inconnue : 'xyz' (champ mco)AnneeInvalide
L’année fournie ne peut pas être parsée.
Année invalide : '20X4'Polars(PolarsError)
Erreur Polars (parse, collect, écriture…).
Io(Error)
Erreur système (lecture / écriture de fichier).
Json(Error)
Erreur lors de la désérialisation d’une requête JSON.
ParsingPmsi
Erreur dans le moteur de requêtes PMSI.
Erreur de requête : champ 'agean' introuvable dans les donnéesFormatInconnu
Format de sortie non pris en charge.
Format de sortie non pris en charge : 'ods'XlsxTropGrand
Taille incompatible avec le format xlsx.
Taille incompatible avec xlsx : 2000000 lignes × 50 colonnesRequete
Erreur dans le moteur de requêtes PMSI (table manquante, filtre invalide).
Autre(String)
Erreur générique avec contexte.
Implementations§
§impl PmsiError
impl PmsiError
pub fn parsing_pmsi(msg: impl Display) -> Self
pub fn parsing_pmsi(msg: impl Display) -> Self
Crée une erreur PmsiError::ParsingPmsi depuis n’importe quel type affichable.
pub fn requete(msg: impl Display) -> Self
pub fn requete(msg: impl Display) -> Self
Crée une erreur PmsiError::Requete depuis n’importe quel type affichable.
pub fn autre(msg: impl Display) -> Self
pub fn autre(msg: impl Display) -> Self
Crée une erreur PmsiError::Autre depuis n’importe quel type affichable.
Trait Implementations§
§impl Error for PmsiError
impl Error for PmsiError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PmsiError
impl !RefUnwindSafe for PmsiError
impl Send for PmsiError
impl Sync for PmsiError
impl Unpin for PmsiError
impl UnsafeUnpin for PmsiError
impl !UnwindSafe for PmsiError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString]. Read more§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.