[ 
https://issues.apache.org/jira/browse/CAY-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrus Adamchik closed CAY-2179.
--------------------------------
    Resolution: Not A Problem

Check out this code again. These try/catch blocks wrap real checked exceptions. 

> Un-thrown exceptions
> --------------------
>
>                 Key: CAY-2179
>                 URL: https://issues.apache.org/jira/browse/CAY-2179
>             Project: Cayenne
>          Issue Type: Bug
>            Reporter: Jaechang Nam
>            Priority: Trivial
>
> There are some of un-thrown exceptions in 
> modeler/cayenne-modeler/src/main/java/org/apache/cayenne/pref/CayenneProjectPreferences.java
>  and ChildrenMapPreference.java (found in the current snapshot, 
> d01cc37aa892ee9809f772ab72791fe95abc52e0). This might be trivial issue or 
> dead code.
> {code:title=CayenneProjectPreferences.java}
> 68             catch (Throwable e) {
> 69                 new CayenneRuntimeException("Error initialzing 
> preference", e);
> 70             }
> {code}
> {code:title=CayenneProjectPreferences.java}
> 82         catch (BackingStoreException e) {
> 83             new CayenneRuntimeException("error delete preferences " + e);
> 84         }
> {code}
> {code:title=ChildrenMapPreference.java}
> 66                                 } catch (Throwable e) {
> 67                                         new CayenneRuntimeException("Error 
> initializing preference", e);
> 68                                 }
> {code}
> {code:title=ChildrenMapPreference.java}
> 102                 } catch (Throwable e) {
> 103                         new CayenneRuntimeException("Error creating 
> preference");
> 104                 }
> {code}
> {code:title=ChildrenMapPreference.java}
> 117                                 } catch (BackingStoreException e) {
> 118                                         new 
> CayenneRuntimeException("Error saving preference");
> 119                                 }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to