mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 13:33:31 +00:00
minor changes.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class VMRemoteErrors : Exception {
|
||||
class VMRemoteError : Exception {
|
||||
[string]$msg
|
||||
|
||||
VMRemoteErrors ([string]$msg) {
|
||||
VMRemoteError ([string]$msg) {
|
||||
$this.msg = $msg
|
||||
}
|
||||
|
||||
@@ -10,12 +10,12 @@ class VMRemoteErrors : Exception {
|
||||
}
|
||||
}
|
||||
|
||||
class LoginError : VMRemoteErrors {
|
||||
class LoginError : VMRemoteError {
|
||||
LoginError ([string]$msg) : base ([string]$msg) {
|
||||
}
|
||||
}
|
||||
|
||||
class CAPIError : VMRemoteErrors {
|
||||
class CAPIError : VMRemoteError {
|
||||
[int]$retval
|
||||
[string]$caller
|
||||
|
||||
@@ -25,6 +25,6 @@ class CAPIError : VMRemoteErrors {
|
||||
}
|
||||
|
||||
[string] ErrorMessage () {
|
||||
return "ERROR: CAPI return value: {0} in {1}" -f $this.retval, $this.caller
|
||||
return "CAPI return value: {0} in {1}" -f $this.retval, $this.caller
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user