to throw
- verb
- /θroʊ/
- Specialized
- In the program, if a user enters invalid data, it will throw an exception to signal the error.
And if you throw throw an error, you return the variant that is, I'm in error, right.
- And if you throw throw an error, you return the variant that is, I'm in error, right.
Examples
-
When the divide function receives a zero as a denominator, it will throw an error to notify the user.
-
It says call can throw, but it's not marked with try.
-
So part of the message is we can throw in additional functions.
-
The way the AP was designed, it should simply throw the question back at me.
Fiction book (2000) -
And of course, again, this initializer throws, so we need to try it.
-
Each subject was then instructed to throw a fastball at maximum velocity to the strike zone.
Academic text (2004) -
Relief spills through Christoph's face as he turns to the program panel and throws in the commands for.
Fiction book (1995) -
One simple reason is that exceptions can be thrown, causing the execution thread to detour (and may never return).
Academic text (2011) -
If the file cannot be found during execution, the system will throw an error message to indicate the problem.
Antonyms
Idioms
- Informal
Leave someone in a dangerous or difficult situation without help to protect yourself
- Informal
To say you will run for a position, for example in an election
To get rid of something valuable while removing something bad
- Informal
To surprise or confuse someone by doing something they did not expect
Cause problems on purpose that stop a plan or process from working smoothly
To behave in a childish sulky way after not getting what you want
- Informal
To give up something important in a careless or disrespectful way
A humorous way to say you find a woman extremely attractive
Give something small to get something much bigger later
To make a big decision you cannot change that may be risky
To decide to start something difficult and not change your mind
- Informal
Talk in a relaxed, joking way and make stories bigger to be funny
Try many different ideas to find one that works
Phrasal Verbs
- Informal
Make people less excited about an idea or plan by saying bad things about it
Compounds
A track and field event where an athlete throws a heavy metal ball attached to a wire for distance
- Specialized
The weight of warheads or other cargo a missile can carry, not counting the rocket
Surface Forms
Etymology
Throw comes from an old word thraw that meant 'twist' or 'turn', but in modern use it often keeps the idea of 'sending' something out. That's why to throw an exception in programming is to send an error out for the program to catch.