ddn.util.monaco.common
Types 13
Base exception for all monaco errors.
All exceptions thrown by the monaco library inherit from this class.
this(string msg, string file = __FILE__, size_t line = __LINE__)Constructs a new MonacoException.Exception thrown when a process is not found or has terminated.
this(int pid, string file = __FILE__, size_t line = __LINE__)Constructs a new NoSuchProcess exception.Exception thrown when insufficient permissions are available to access a resource.
this(string resource, string file = __FILE__, size_t line = __LINE__)Constructs a new AccessDenied exception.Exception thrown when an operation times out.
this(string operation, string file = __FILE__, size_t line = __LINE__)Constructs a new TimeoutExpired exception.Exception thrown when a system resource is temporarily unavailable.
this(string resource, string file = __FILE__, size_t line = __LINE__)Constructs a new ResourceUnavailable exception.Exception thrown when attempting to operate on a zombie process.
Zombie processes are terminated processes that haven't been reaped by their parent.
this(int pid, string file = __FILE__, size_t line = __LINE__)Constructs a new ZombieProcess exception.Exception thrown when attempting to operate on a kernel process.
Kernel processes run in kernel space and cannot be accessed like normal processes.
this(int pid, string file = __FILE__, size_t line = __LINE__)Constructs a new KernelProcess exception.Exception thrown when an invalid process ID is provided.
Invalid PIDs are negative numbers, non-numeric values, or PIDs outside valid range.
this(int pid, string reason = null, string file = __FILE__, size_t line = __LINE__)Constructs a new InvalidPID exception.Exception thrown when a feature is not supported on the current platform.
Some operations are only available on specific platforms.
this(string feature, string platform = null, string file = __FILE__, size_t line = __LINE__)Constructs a new PlatformNotSupported exception.Exception thrown when a process terminates during an operation.
This can happen when a process exits while being queried or monitored.
this(int pid, string operation, string file = __FILE__, size_t line = __LINE__)Constructs a new ProcessTerminated exception.Process status enumeration.
Represents the various states a process can be in.
Network connection status enumeration.
Represents the various states a network connection can be in.
Address family enumeration.
Represents the different types of network addresses.
Functions 4
bool isValidEnum(E)(E value) if (is(E == enum)) @safe @nogc nothrowChecks if a value is a valid enum member.string enumToString(E)(E value) if (is(E == enum)) @safeConverts an enum value to its string representation.void enforceMonaco(bool condition, string message, string file = __FILE__, size_t line = __LINE__) @safeEnforces that a condition is true, throwing a MonacoException if not.