Skip to content
Browse files

fix default constructor

  • Loading branch information...
2 parents a38877e + 016c79c commit 0bfe37e3ae67e5cec564613a16e8094eb08c696e @grze grze committed Nov 30, 2011
Showing with 8 additions and 3 deletions.
  1. +8 −3 clc/modules/msgs/src/main/java/com/eucalyptus/component/Faults.java
View
11 clc/modules/msgs/src/main/java/com/eucalyptus/component/Faults.java
@@ -167,6 +167,11 @@ public boolean apply( final Throwable input ) {
@Transient
private CheckException other;
+ @SuppressWarnings( "unused" )
+ public CheckException( ) {
+ this( null );
+ }
+
private CheckException( final String serviceName ) {
this.serviceName = serviceName;
this.severity = null;
@@ -429,7 +434,7 @@ private static CheckException chain( final ServiceConfiguration config, final Se
return last;
} catch ( Exception ex ) {
LOG.error( "Faults: error in processing previous error: " + ex );
- Logs.extreme( ).error( ex , ex );
+ Logs.extreme( ).error( ex, ex );
return new CheckException( config, Severity.ERROR, ex );
}
}
@@ -494,7 +499,7 @@ public CheckException apply( final ServiceStatusType input ) {
LOG.error( "Failed to lookup error information for: " + config.getFullName( ), ex );
db.rollback( );
}
- return null;
+ return Lists.newArrayList( );
}
public static void persist( final CheckException errors ) {
@@ -512,7 +517,7 @@ public static void persist( final CheckException errors ) {
}
} catch ( Exception ex ) {
LOG.error( "Faults: error in processing previous error: " + errors );
- Logs.extreme( ).error( ex , ex );
+ Logs.extreme( ).error( ex, ex );
}
}
}

0 comments on commit 0bfe37e

Please sign in to comment.
Something went wrong with that request. Please try again.