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

English translation: throws an exception

GLOSSARY ENTRY (DERIVED FROM QUESTION BELOW)
French term or phrase: mène à une levée de l’exception.
English translation:throws an exception
Entered by: veratek

17:30 Oct 31, 2010
French to English translations [PRO]
Tech/Engineering - IT (Information Technology) / JAVA
French term or phrase: mène à une levée de l’exception.
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.
veratek
Brazil
Local time: 21:59
throws an exception
Explanation:
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!
Selected response from:

lydiar
New Zealand
Local time: 12:59
Grading comment
4 KudoZ points were awarded for this answer



Summary of answers provided
5 +2leads to an exception being thrown
Neil Coffey
4 +1throws an exception
lydiar
2leads to a throwing of the exception
Claire Nolan


  

Answers


14 mins   confidence: Answerer confidence 2/5Answerer confidence 2/5
leads to a throwing of the exception


Explanation:
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...

Claire Nolan
Local time: 20:59
Native speaker of: English
PRO pts in category: 41
Login to enter a peer comment (or grade)

7 hrs   confidence: Answerer confidence 5/5 peer agreement (net): +2
leads to an exception being thrown


Explanation:
@Clanola basically had it, but this would be the correct English.

Neil Coffey
United Kingdom
Local time: 01:59
Specializes in field
Native speaker of: Native in EnglishEnglish
PRO pts in category: 48

Peer comments on this answer (and responses from the answerer)
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
Login to enter a peer comment (or grade)

3 hrs   confidence: Answerer confidence 4/5Answerer confidence 4/5 peer agreement (net): +1
throws an exception


Explanation:
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!



    Reference: http://www.oracle.com/technetwork/java/javase/documentation/...
lydiar
New Zealand
Local time: 12:59
Specializes in field
Native speaker of: English
PRO pts in category: 34

Peer comments on this answer (and responses from the answerer)
agree  Kiwiland Bear
6 hrs
  -> thanks
Login to enter a peer comment (or grade)



Login or register (free and only takes a few minutes) to participate in this question.

You will also have access to many other tools and opportunities designed for those who have language-related jobs (or are passionate about them). Participation is free and the site has a strict confidentiality policy.

KudoZ™ translation help

The KudoZ network provides a framework for translators and others to assist each other with translations or explanations of terms and short phrases.


See also:
Term search
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search