def METHOD_NAME(func):
    @functools.wraps(func)
    def wrapper(*args, **kwargs):
        try:
            return func(*args, **kwargs)
        except ParallelClusterApiException as e:
            raise e
        except (LimitExceeded, LimitExceededError) as e:
            raise LimitExceededException(str(e)) from e
        except (BadRequest, BadRequestError) as e:
            raise BadRequestException(str(e)) from e
        except Conflict as e:
            raise ConflictException(str(e)) from e
        except NotFound as e:
            raise NotFoundException(str(e)) from e
        except Exception as e:
            raise InternalServiceException(str(e)) from e
    return wrapper