Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does Error accept one or two arguments? #23

Open
johndowns opened this issue Jan 1, 2018 · 0 comments
Open

Does Error accept one or two arguments? #23

johndowns opened this issue Jan 1, 2018 · 0 comments

Comments

@johndowns
Copy link

The uniqueConstraint sample trigger, on lines 47, 60, 69, 105, 115, 121, and 134, throws a new Error with two arguments - an error code and a message. Similarly, the sum sample stored procedure does the same thing on lines 32 and 33.

It appears that Error can only be thrown with a single (message) argument though - and all other samples just use a single argument.

Which is correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant