mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 21:43:32 +00:00
update to error classes, rework Param_Set_Multi
Added VMRemoteErrors. Other error classes now subclass VMRemoteErrors. rework Function Param_Set_Multi added throw LoginError object on multiple login attempts (still crashing the powershell window during testing if in same powershell fork) update readme to include vban_instream, vban_outstream example in set parameters by hash. macrobutton in hash can now use key button or mb.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class VBPathError : Exception {
|
||||
class VMRemoteErrors : Exception {
|
||||
[String]$msg
|
||||
|
||||
VBPathError([String]$msg) {
|
||||
VMRemoteErrors([String]$msg) {
|
||||
$this.msg = $msg
|
||||
}
|
||||
|
||||
@@ -10,19 +10,12 @@ class VBPathError : Exception {
|
||||
}
|
||||
}
|
||||
|
||||
class LoginError : Exception {
|
||||
[String]$msg
|
||||
|
||||
LoginError([String]$msg) {
|
||||
$this.msg = $msg
|
||||
}
|
||||
|
||||
[String] ErrorMessage() {
|
||||
return $this.msg
|
||||
class LoginError : VMRemoteErrors {
|
||||
LoginError([String]$msg) : Base([String]$msg) {
|
||||
}
|
||||
}
|
||||
|
||||
class CAPIError : Exception {
|
||||
class CAPIError : VMRemoteErrors {
|
||||
[Int]$retval
|
||||
[String]$caller
|
||||
|
||||
|
||||
Reference in New Issue
Block a user