CAPIError properties renamed.

code and function better describe their meaning.
This commit is contained in:
onyx-and-iris 2023-08-17 02:54:30 +01:00
parent 1df92afcfe
commit d0fbd6deef

View File

@ -9,11 +9,11 @@ class LoginError : VMRemoteError {
}
class CAPIError : VMRemoteError {
[int]$retval
[string]$caller
[int]$code
[string]$function
CAPIError ([int]$retval, [string]$caller) : base ("$caller returned $retval") {
$this.retval = $retval
$this.caller = $caller
CAPIError ([int]$code, [string]$function) : base ("$function returned $code") {
$this.code = $code
$this.function = $function
}
}