Skip to content

How can we return error value from ReflectionFunction? #925

Discussion options

You must be logged in to vote

Check the CommomErrors class. You can call some of the static methods to get a pre-built error message or you can call CommomErrors.CustomError to build your own custom error message.
If none of them work for you, it is still a good source to learn how to build ErrorValue objects.

As a reminder, it is also possible to create a ErrorValue from an expression:
Error({Kind:ErrorKind.InvalidArgument, Message:"This argument is invalid."})

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@exceedsystem
Comment options

@exceedsystem
Comment options

@anderson-joyle
Comment options

@MikeStall
Comment options

@exceedsystem
Comment options

Answer selected by anderson-joyle
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants