voicemeeter-api-powershell/lib/errors.ps1
onyx-and-iris d0fbd6deef CAPIError properties renamed.
code and function better describe their meaning.
2023-08-17 02:54:30 +01:00

19 lines
407 B
PowerShell

class VMRemoteError : Exception {
VMRemoteError ([string]$msg) : base ($msg) {
}
}
class LoginError : VMRemoteError {
LoginError ([string]$msg) : base ($msg) {
}
}
class CAPIError : VMRemoteError {
[int]$code
[string]$function
CAPIError ([int]$code, [string]$function) : base ("$function returned $code") {
$this.code = $code
$this.function = $function
}
}