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 { class CAPIError : VMRemoteError {
[int]$retval [int]$code
[string]$caller [string]$function
CAPIError ([int]$retval, [string]$caller) : base ("$caller returned $retval") { CAPIError ([int]$code, [string]$function) : base ("$function returned $code") {
$this.retval = $retval $this.code = $code
$this.caller = $caller $this.function = $function
} }
} }