Skip to content

Commit

Permalink
UQ-393 improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
schlotze committed Aug 29, 2016
1 parent 65f401c commit 6af3138
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 94 deletions.
46 changes: 23 additions & 23 deletions src/main/java/eu/uqasar/message/UQasarMessage.java
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
package eu.uqasar.message;

/*
* #%L
* U-QASAR
* %%
* Copyright (C) 2012 - 2015 U-QASAR Consortium
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/

package eu.uqasar.message;

/*
* #%L
* U-QASAR
* %%
* Copyright (C) 2012 - 2015 U-QASAR Consortium
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/


import java.io.IOException;
import java.io.StringWriter;
Expand Down Expand Up @@ -260,7 +260,7 @@ protected ResourceBundle getMyOrMyParentsResourceBundle() {
try {
bundle = ResourceBundle.getBundle(clazz.getCanonicalName(), localeT, clazz.getClassLoader());
return bundle;
} catch (MissingResourceException ex2) {
} catch (MissingResourceException ignored) {
}
}
}
Expand Down
48 changes: 24 additions & 24 deletions src/main/java/eu/uqasar/util/ldap/LdapEntity.java
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
/*
*/
package eu.uqasar.util.ldap;

/*
* #%L
* U-QASAR
* %%
* Copyright (C) 2012 - 2015 U-QASAR Consortium
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/

package eu.uqasar.util.ldap;

/*
* #%L
* U-QASAR
* %%
* Copyright (C) 2012 - 2015 U-QASAR Consortium
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/


import eu.uqasar.model.settings.ldap.LdapSettings;
import java.io.Serializable;
Expand Down Expand Up @@ -57,7 +57,7 @@ public static <T> T getValue(final String attributeName, final Attributes attr)
if (attribute != null) {
return (T) attribute.get();
}
} catch (NamingException e) {
} catch (NamingException ignored) {
}
return null;
}
Expand All @@ -68,7 +68,7 @@ public <T> T getValue(final String attributeName) {
if (attribute != null) {
return (T) attribute.get();
}
} catch (NamingException e) {
} catch (NamingException ignored) {
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
package eu.uqasar.web.components.charts;

/*
* #%L
* U-QASAR
* %%
* Copyright (C) 2012 - 2015 U-QASAR Consortium
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/

package eu.uqasar.web.components.charts;

/*
* #%L
* U-QASAR
* %%
* Copyright (C) 2012 - 2015 U-QASAR Consortium
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/


import java.text.DateFormatSymbols;
import java.text.DecimalFormatSymbols;
Expand Down Expand Up @@ -60,7 +60,7 @@ public static LanguageOptions getLocalizedLanguageOptions() {
lang.setResetZoom(bundle.getString("chart.button.reset.zoom"));
lang.setResetZoomTitle(bundle
.getString("chart.button.title.reset.zoom"));
} catch (MissingResourceException e) {
} catch (MissingResourceException ignored) {
}

return lang;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected byte[] getImageData(Attributes attributes) {
bytes = baos.toByteArray();
}
return bytes;
} catch (IOException | ResourceStreamNotFoundException ex) {
} catch (IOException | ResourceStreamNotFoundException ignored) {
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
/*
*/
package eu.uqasar.web.upload;

/*
* #%L
* U-QASAR
* %%
* Copyright (C) 2012 - 2015 U-QASAR Consortium
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/

package eu.uqasar.web.upload;

/*
* #%L
* U-QASAR
* %%
* Copyright (C) 2012 - 2015 U-QASAR Consortium
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/


import eu.uqasar.model.user.User;
import java.awt.image.BufferedImage;
Expand Down Expand Up @@ -104,7 +104,7 @@ public Path processFile(InputStream is, Path target) throws IOException {
try (FileOutputStream baos = new FileOutputStream(target.toFile())) {
ImageIO.write(thumb, "PNG", baos);
}
} catch (IOException ex) {
} catch (IOException ignored) {
}
return target;
}
Expand Down

0 comments on commit 6af3138

Please sign in to comment.