mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 01:42:30 -05:00
Audio changes (#5593)
* Squash tested commits * remove the code jack is concerned about * Apply suggestions from code review * more log lines * more log lines * format * formatting * style(Rename Xms and Xmx mentions): Rename Xms and Xmx to more use friendly names - Change Xms to "Initial Heapsize" - Change Xmx to "Max Heapsize" Signed-off-by: Draper <27962761+Drapersniper@users.noreply.github.com>
This commit is contained in:
@@ -11,7 +11,55 @@ class AudioError(Exception):
|
||||
"""Base exception for errors in the Audio cog."""
|
||||
|
||||
|
||||
class LavalinkDownloadFailed(AudioError, RuntimeError):
|
||||
class ManagedLavalinkNodeException(AudioError):
|
||||
"""Base Exception for Managed Lavalink Node Exceptions"""
|
||||
|
||||
|
||||
class NodeUnhealthy(ManagedLavalinkNodeException):
|
||||
"""Exception Raised when the node health checks fail"""
|
||||
|
||||
|
||||
class InvalidArchitectureException(ManagedLavalinkNodeException):
|
||||
"""Error thrown when the Managed Lavalink node is started on an invalid arch."""
|
||||
|
||||
|
||||
class ManagedLavalinkAlreadyRunningException(ManagedLavalinkNodeException):
|
||||
"""Exception thrown when a managed Lavalink node is already running"""
|
||||
|
||||
|
||||
class ManagedLavalinkStartFailure(ManagedLavalinkNodeException):
|
||||
"""Exception thrown when a managed Lavalink node fails to start"""
|
||||
|
||||
|
||||
class ManagedLavalinkPreviouslyShutdownException(ManagedLavalinkNodeException):
|
||||
"""Exception thrown when a managed Lavalink node already has been shutdown"""
|
||||
|
||||
|
||||
class EarlyExitException(ManagedLavalinkNodeException):
|
||||
"""some placeholder text I cannot be bothered to add a meaning message atm"""
|
||||
|
||||
|
||||
class UnsupportedJavaException(ManagedLavalinkNodeException):
|
||||
"""Exception thrown when a managed Lavalink node doesn't have a supported Java"""
|
||||
|
||||
|
||||
class UnexpectedJavaResponseException(ManagedLavalinkNodeException):
|
||||
"""Exception thrown when Java returns an unexpected response"""
|
||||
|
||||
|
||||
class NoProcessFound(ManagedLavalinkNodeException):
|
||||
"""Exception thrown when the managed node process is not found"""
|
||||
|
||||
|
||||
class IncorrectProcessFound(ManagedLavalinkNodeException):
|
||||
"""Exception thrown when the managed node process is incorrect"""
|
||||
|
||||
|
||||
class TooManyProcessFound(ManagedLavalinkNodeException):
|
||||
"""Exception thrown when zombie processes are suspected"""
|
||||
|
||||
|
||||
class LavalinkDownloadFailed(ManagedLavalinkNodeException, RuntimeError):
|
||||
"""Downloading the Lavalink jar failed.
|
||||
|
||||
Attributes
|
||||
|
||||
Reference in New Issue
Block a user