Howto? throw and catch an error from "invoke method"

hi guys,

super quick and probably very silly question,
i'm invoking a custom method and i basically want to either succeed or throw an error which would enter the Radzen query builder error path (1.2)

my code is as follows,

is there a specific error type i need to throw on line 50? to be able to enter 1.2 ?

Got it, a bit of a tweak to the builder and minor adjustment to code, close this one off please