dfinity / sdk

IC SDK: a Software Development Kit for creating and managing canister smart contracts on the ICP blockchain.
https://internetcomputer.org/developers
Apache License 2.0
171 stars 83 forks source link

refactor: Split up CacheError into method-specific error types #3858

Closed ericswanson-dfinity closed 1 month ago

ericswanson-dfinity commented 1 month ago

Description

Split up CacheError into method-specific error types.

Also uses ensure_dir_exists and renames get_bin_cache_root to ensure_cache_versions_dir because that is what it does. I may follow up with another PR that renames some other methods that currently have similar names but subtle differences.

How Has This Been Tested?

Covered by existing tests.

Checklist: