Skip to content

Change calls to throw to vector instead of string#531

Merged
heyLu merged 1 commit intopixie-lang:masterfrom
egregius313:patch-2
Jun 9, 2017
Merged

Change calls to throw to vector instead of string#531
heyLu merged 1 commit intopixie-lang:masterfrom
egregius313:patch-2

Conversation

@egregius313
Copy link
Contributor

Calls to throw previously used strings, which is not a valid way to call throw (Thus raising an exception raised a completely different exception). Changed all calls to use vectors instead.

Calls to throw previously used strings, which is not a valid way to call throw (Thus raising an exception raised a completely different exception). Changed all calls to use vectors instead.
@heyLu
Copy link
Member

heyLu commented Jun 8, 2017

This looks good, but I'm not sure about the custom exceptions. What do other languages do here?

@thomasmulvaney
Copy link
Member

Java has some file exceptions which subclass IOException. It certainly is nice to be handle exceptions on a case by case basis.

Copy link
Member

@heyLu heyLu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, then! ✨

@heyLu heyLu merged commit 5eb0ccb into pixie-lang:master Jun 9, 2017
@heyLu
Copy link
Member

heyLu commented Jun 9, 2017

Thanks @egregius313! ✨

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

Successfully merging this pull request may close these issues.

3 participants