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:
onyx-and-iris
2022-01-19 05:16:28 +00:00
parent 1e4ab54447
commit 57e5368752
3 changed files with 35 additions and 63 deletions

View File

@@ -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