Closed IanButterworth closed 3 years ago
Does spinError come from C land? Is it an int?
It's an alias for the @cenum
https://github.com/samuelpowell/Spinnaker.jl/blob/6073897755edc436714ec5d1f3d727cf257c1e3a/src/wrapper/spin_common.jl#L3297-L3342
julia> typeof(Spinnaker.SPINNAKER_ERR_NOT_INITIALIZED)
Spinnaker._spinError
Okay. Arbitrary question asked and answered. LGTM.
Adds a
SpinError
exception type with aval
field, such that the Spinnaker SDKspinError
enum value can be saved and compared. Currently theErrorException
that is returned has to be string compared via themsg
field, which is suboptimal.Should be a breaking change release.
Errors will still show the same way.
But they can be caught and value compared