A special case of this variant is the transformation of a checked into an unchecked exception.
Ein besonderer Fall dieser Variante ist die Umwandlung einer checked Exception in eine unchecked Exception.
If useful information from the current method can be added or if a higher rate of problems is expected or if an unchecked exception is desired then 'catch and throw enhanced' should be used.
Wenn nützliche Informationen aus der aktuellen Methode hinzugefügt werden können, eine höhere Zahl von Problemen zu erwarten ist oder wenn eine unchecked Exception erforderlich ist, sollte "catch and throw enhanced" verwendet werden.
The software developer has to react to a checked exceptions but on the other side is free to ignore the unchecked exception.
Der Entwickler muss auf checked Exceptions reagieren, kann aber auf der anderen Seite unchecked Exceptions ignorieren.
Reacting on an unchecked exception is no different from reacting on a checked exception and most importantly the same mistakes can be made.
Die Reaktion auf unchecked Exceptions unterscheidet sich nicht von der Reaktion auf checked Exeptions und insbesondere können die gleichen Fehler gemacht werden.
Andere resultaten
The difference between checked and unchecked exceptions only exists during compile time.
Der Unterschied zwischen checked und unchecked Exceptions existiert nur zur Compilezeit.
Some of the unchecked exceptions in Java are
Sie können Ihre eigenen Ausnahmen in Java erstellen.
C# only supports unchecked exceptions.
Wie in C# gibt es keine checked exceptions.
Do you use checked or unchecked exceptions?
Verwenden Sie checked- oder unchecked-Exceptions?
I would suggest starting with (unchecked) exceptions for the following reasons
Ich würde vorschlagen mit unchecked Exceptions zu beginnen. Die Gründe sind folgende
If unchecked, it will disallow users on the station to create a new exception for potentially unwanted programs.
Wenn das Kontrollkästchen deaktiviert ist, können Benutzer der Station keine Ausnahmen für potentiell unerwünschte Programme erstellen.
If you want to define this file as an exception only for the specific location, then leave the checkbox Any location - do not use full path unchecked.
Wenn Sie diese Datei nur für diesen bestimmten Ort als Ausnahme definieren möchten, müssen Sie das Kontrollkästchen Jeder Speicherort - nicht den vollständigen Pfad verwenden deaktiviert lassen.
Make sure the check box for "Don't allow exceptions" is unchecked.
Achten Sie darauf, dass das Kontrollkästchen „Keine Ausnahmen zulassen" nicht markiert ist.
The Manually Logged box is automatically checked if this exception is logged manually in the Log exception window. It is unchecked if it is logged through a program.
Das Kontrollkästchen "Manuell protokolliert" wird automatisch aktiviert, wenn die Ausnahme im Fenster "Ausnahmen protokollieren" manuell protokolliert wird. Es wird deaktiviert, wenn die Protokollierung über ein Programm erfolgt.