from tq42.exceptions.tq42_api_error import TQ42APIError
_MESSAGE = """
Unable to Execute: `{}`
We were unable to execute the given command as it violates certain constraints for the given resource:
{}
""".strip()
[docs]class InvalidArgumentError(TQ42APIError):
"""
Raised when providing wrong arguments / parameters.
Attributes:
command (str): Where the error occurred.
details (str): Details about the error.
"""
def __init__(self, command: str, details: str):
self.command = command
self.details = details
def __str__(self):
return _MESSAGE.format(self.command, self.details)