Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'ClientError',
'InvalidContent',
'HTTPException',
'Unauthorized',
)
class TwitchIOBException(Exception):
"""Base exception class for TwitchIO."""
class AuthenticationError(TwitchIOBException):
"""Authentication error."""
class WSConnectionFailure(TwitchIOBException):
"""Exception raised when WS fails to connect."""
class ClientError(TwitchIOBException):
pass
class InvalidContent(TwitchIOBException):
pass
class HTTPException(TwitchIOBException):
pass
class EchoMessageWarning(TwitchIOBException):
"""Base exception class for TwitchIO."""
class AuthenticationError(TwitchIOBException):
"""Authentication error."""
class WSConnectionFailure(TwitchIOBException):
"""Exception raised when WS fails to connect."""
class ClientError(TwitchIOBException):
pass
class InvalidContent(TwitchIOBException):
pass
class HTTPException(TwitchIOBException):
pass
class EchoMessageWarning(TwitchIOBException):
"""Exception raised when a bot user tries to repsond to it's own message."""
pass
class Unauthorized(HTTPException):
pass
"""Authentication error."""
class WSConnectionFailure(TwitchIOBException):
"""Exception raised when WS fails to connect."""
class ClientError(TwitchIOBException):
pass
class InvalidContent(TwitchIOBException):
pass
class HTTPException(TwitchIOBException):
pass
class EchoMessageWarning(TwitchIOBException):
"""Exception raised when a bot user tries to repsond to it's own message."""
pass
class Unauthorized(HTTPException):
pass
__all__ = (
'TwitchIOBException',
'AuthenticationError',
'WSConnectionFailure',
'ClientError',
'InvalidContent',
'HTTPException',
'Unauthorized',
)
class TwitchIOBException(Exception):
"""Base exception class for TwitchIO."""
class AuthenticationError(TwitchIOBException):
"""Authentication error."""
class WSConnectionFailure(TwitchIOBException):
"""Exception raised when WS fails to connect."""
class ClientError(TwitchIOBException):
pass
class InvalidContent(TwitchIOBException):
pass
class HTTPException(TwitchIOBException):
"""Exception raised when WS fails to connect."""
class ClientError(TwitchIOBException):
pass
class InvalidContent(TwitchIOBException):
pass
class HTTPException(TwitchIOBException):
pass
class EchoMessageWarning(TwitchIOBException):
"""Exception raised when a bot user tries to repsond to it's own message."""
pass
class Unauthorized(HTTPException):
pass
)
class TwitchIOBException(Exception):
"""Base exception class for TwitchIO."""
class AuthenticationError(TwitchIOBException):
"""Authentication error."""
class WSConnectionFailure(TwitchIOBException):
"""Exception raised when WS fails to connect."""
class ClientError(TwitchIOBException):
pass
class InvalidContent(TwitchIOBException):
pass
class HTTPException(TwitchIOBException):
pass
class EchoMessageWarning(TwitchIOBException):
"""Exception raised when a bot user tries to repsond to it's own message."""
pass
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
__all__ = ('CommandError', 'CommandNotFound', 'MissingRequiredArgument', 'BadArgument', 'CheckFailure',)
from twitchio.errors import TwitchIOBException
class CommandError(TwitchIOBException):
"""Base Exception for errors raised by commands."""
pass
class CommandNotFound(CommandError):
"""Exception raised when a command is not found."""
pass
class CheckFailure(CommandError):
"""Exception raised when a check fails."""
class MissingRequiredArgument(CommandError):
"""Exception raised when a required argument is not passed to a command.