Many of the functions can return a pair where one part of the par will then be the error. Make it a convention to have each pair follow the structure pair <T, ErrorCode> for the sake of consistency.
Then, implement the error handling for all of the functions that get links or tiles and check that it works.
Implement an ErrorType enum to handle errors that may arise when getting requests from the MapTiler API or parsing the corresponding data.
Basic structure of the type:
Many of the functions can return a pair where one part of the par will then be the error. Make it a convention to have each pair follow the structure pair <T, ErrorCode> for the sake of consistency.
Then, implement the error handling for all of the functions that get links or tiles and check that it works.