SlackWebException#
- exception safir.slack.blockkit.SlackWebException(message, *, failed_at=None, method=None, url=None, user=None, status=None, body=None)#
Parent class of exceptions arising from HTTPX failures.
Captures additional information from any HTTPX exception. Intended to be subclassed. Subclasses may wish to override the
to_slackmethod.- Parameters:
message (
str) – Exception string value, which is the default Slack message.failed_at (
Optional[datetime], default:None) – When the exception happened. Omit to use the current time.user (
Optional[str], default:None) – Username on whose behalf the request is being made.status (
Optional[int], default:None) – Status code of failure, if any.body (
Optional[str], default:None) – Body of failure message, if any.