def exception_to_dict(error):
    """Takes in an exception and outputs its details, excluding the stacktrace, to a dict

    Args:
        error (Exception): The exception to serialize

    Returns:
        dict: The serialized exception
    """
    return {"type": str(type(error).__name__), "message": str(error)}