Glossary entry

French term or phrase:

mène à une levée de l’exception.

English translation:

throws an exception

Added to glossary by veratek
Oct 31, 2010 17:30
13 yrs ago
French term

mène à une levée de l’exception.

French to English Tech/Engineering IT (Information Technology) JAVA
La balise @throws est obligatoire si la méthode renvoie des exceptions et décrit la configuration qui mène à une levée de l’exception.
Change log

Oct 31, 2010 19:37: Simon Mac changed "Level" from "Non-PRO" to "PRO"

Votes to reclassify question as PRO/non-PRO:

PRO (3): Claire Nolan, Julie Barber, Simon Mac

When entering new questions, KudoZ askers are given an opportunity* to classify the difficulty of their questions as 'easy' or 'pro'. If you feel a question marked 'easy' should actually be marked 'pro', and if you have earned more than 20 KudoZ points, you can click the "Vote PRO" button to recommend that change.

How to tell the difference between "easy" and "pro" questions:

An easy question is one that any bilingual person would be able to answer correctly. (Or in the case of monolingual questions, an easy question is one that any native speaker of the language would be able to answer correctly.)

A pro question is anything else... in other words, any question that requires knowledge or skills that are specialized (even slightly).

Another way to think of the difficulty levels is this: an easy question is one that deals with everyday conversation. A pro question is anything else.

When deciding between easy and pro, err on the side of pro. Most questions will be pro.

* Note: non-member askers are not given the option of entering 'pro' questions; the only way for their questions to be classified as 'pro' is for a ProZ.com member or members to re-classify it.

Proposed translations

+1
3 hrs
Selected

throws an exception

I'd be translating as:
A @throws tag should be used if the method throws an exception and describes the configuration which led to the exception.

From the How to Write Doc Comments for the Javadoc Tool

@throws ( @exception was the original tag) (reference page)
A @throws tag should be included for any checked exceptions (declared in the throws clause), as illustrated below, and also for any unchecked exceptions that the caller might reasonably want to catch, with the exception of NullPointerException. Errors should not be documented as they are unpredictable. For more details, please see Documenting Exceptions with the @throws Tag.

/**
* @throws IOException If an input or output
* exception occurred
*/
public void f() throws IOException {
// body
}

See the Exceptions chapter of the Java Language Specification, Second Edition for more on exceptions. Also see order of multiple @throws tags.

--------------------------------------------------
Note added at 9 hrs (2010-11-01 03:08:51 GMT)
--------------------------------------------------

Oops - it was too early in the morning for me - I was translating the first part not the second!
Peer comment(s):

agree Kiwiland Bear
6 hrs
thanks
Something went wrong...
4 KudoZ points awarded for this answer.
14 mins

leads to a throwing of the exception

French:

Levez une exception System.InvalidOperationException si l'état n'est pas approprié.

http://msdn.microsoft.com/fr-fr/library/ms229007(VS.80).aspx

English:

InvalidOperationException
Do throw a System.InvalidOperationException exception if in an inappropriate state.

http://msdn.microsoft.com/en-ca/library/ms229007(v=VS.80).as...

--------------------------------------------------
Note added at 17 mins (2010-10-31 17:48:22 GMT)
--------------------------------------------------

Throwing An Exception
You can throw an exception explicitly using the throw statement.

For e.g.

You need to throw an exception when a user enters a wrong login ID or password.

The throws clause is used to list the types of exception that can be thrown during the execution of a method in a program.

http://www.tutorialhero.com/tutorial-75-throwing_an_exceptio...

Définition du mot LEVER, Lever une exception signifie déclencher le processus associé à l'exception, permettant de traiter le cas exceptionnel.

http://dictionnaire.phpmyvisites.net/definition-Lever-11005....

--------------------------------------------------
Note added at 20 mins (2010-10-31 17:51:33 GMT)
--------------------------------------------------

Presumably it is the absence of any sort of definition for - _referenceError
- that provokes THE THROWING OF AN EXCEPTION at this line of code,
preventing the evaluation of the assignment in the next line?

http://cookp.com/thread/862751/pseudo-namespacing in JavaScr...
Something went wrong...
+2
7 hrs

leads to an exception being thrown

@Clanola basically had it, but this would be the correct English.
Peer comment(s):

agree lydiar
1 hr
neutral Kiwiland Bear : It may be correct English but I feel Lydia's version is better in IT context. On top of it, to me at least, "leads to" has a hint that this is likely to happen. I.e. - "X leads to Y" seems to imply that if you do X, Y will follow. Not so with "X throws Y"
2 hrs
agree Claire Nolan : Sounds better than mine!
10 hrs
Something went wrong...
Term search
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search