#Why does he underlines my Excpetions ?

1 messages · Page 1 of 1 (latest)

void obsidian
#

I did a if loop to catch wrong inputs, and the if loop should print Exceptions out for every wrong input

viscid cometBOT
#

<@&987246399047479336> please have a look, thanks.

viscid cometBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

twilit garden
#

@void obsidian can u post the code, else u cant really get help

void obsidian
#

I know its just out of the class.

#

I jsut typed it again

mental raft
#

ull have to share the full code and the full error message

#

that snippet itself makes no sense to a random reader like us

limpid gazelle
#

You can't use the exception name like that

#

Do u want to throw an exception or just print an error msg?

void obsidian
mental raft
#

we cant help u with that little info

#

are u trying to throw exceptions?

#

the syntax for that is throw new FooException("blabla")

void obsidian
mental raft
#

and not what u did

void obsidian
#

okay thank you

#

I will try it.