Source code for idmtools.assets.errors

idmtools assets errors.

Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.

[docs]class DuplicatedAssetError(Exception): """ DuplicatedAssetError is an error for when duplicates assets are added to collection. Notes: TODO: Add a doclink """
[docs] def __init__(self, asset: 'TAsset'): # noqa: F821 """ Initialize our error. Args: asset:Asset that caused the error """ super().__init__(f"{asset} is already present in the collection!")