finish phonenumberutil basics

This commit is contained in:
Vlasislav Kashin
2025-07-10 02:37:02 +03:00
parent b018ee99ce
commit e6c07d654f
6 changed files with 150 additions and 7 deletions

View File

@@ -58,3 +58,10 @@ pub enum GetExampleNumberError {
#[error("Invalid metadata")]
InvalidMetadataError
}
#[derive(Error, Debug, PartialEq)]
pub enum MatchError {
#[error("Invalid number given")]
InvalidNumber(#[from] ParseError), // NOT_A_NUMBER in the java version.
}