ss: Replace AttributeNotFoundException with IOOBE for quark parameters
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.core / src / org / eclipse / tracecompass / internal / analysis / os / linux / core / inputoutput / DiskWriteModel.java
index feaecbcb2c36fae192c9576b9727140f09598985..6800c4c0e8623fa386539a356632633142cbbb50 100644 (file)
@@ -71,7 +71,7 @@ public class DiskWriteModel extends Disk {
         super.setDiskName(diskname);
         try {
             fSs.modifyAttribute(fSs.getCurrentEndTime(), TmfStateValue.newValueString(diskname), getQuark());
-        } catch (StateValueTypeException | AttributeNotFoundException e) {
+        } catch (StateValueTypeException e) {
             Activator.getDefault().logError("Cannot set the diskname for disk " + diskname, e); //$NON-NLS-1$
         }
     }
@@ -145,7 +145,7 @@ public class DiskWriteModel extends Disk {
 
             int mergedInQuark = fSs.getQuarkRelativeAndAdd(slotQuark, Attributes.MERGED_IN);
             fSs.modifyAttribute(ts, TmfStateValue.nullValue(), mergedInQuark);
-        } catch (StateValueTypeException | AttributeNotFoundException e) {
+        } catch (StateValueTypeException e) {
             Activator.getDefault().logError("Error inserting request", e); //$NON-NLS-1$
         }
         fWaitingQueue.put(request.getSector(), new Pair<>(request, slotQuark));
@@ -192,7 +192,7 @@ public class DiskWriteModel extends Disk {
 
             int mergedInQuark = fSs.getQuarkRelativeAndAdd(slotQuark, Attributes.MERGED_IN);
             fSs.modifyAttribute(ts, TmfStateValue.nullValue(), mergedInQuark);
-        } catch (StateValueTypeException | AttributeNotFoundException e) {
+        } catch (StateValueTypeException e) {
             Activator.getDefault().logError("Error inserting request", e); //$NON-NLS-1$
         }
 
@@ -275,7 +275,7 @@ public class DiskWriteModel extends Disk {
 
             int issuedFromQuark = fSs.getQuarkRelativeAndAdd(slotQuark, Attributes.ISSUED_FROM);
             fSs.modifyAttribute(ts, issuedFromValue, issuedFromQuark);
-        } catch (StateValueTypeException | AttributeNotFoundException e) {
+        } catch (StateValueTypeException e) {
             Activator.getDefault().logError("Error issuing request", e); //$NON-NLS-1$
         }
 
@@ -341,7 +341,7 @@ public class DiskWriteModel extends Disk {
 
                 int issuedFromQuark = fSs.getQuarkRelativeAndAdd(mergedQuark, Attributes.MERGED_IN);
                 fSs.modifyAttribute(ts, TmfStateValue.newValueInt(Integer.parseInt(reqQueueId)), issuedFromQuark);
-            } catch (StateValueTypeException | AttributeNotFoundException e) {
+            } catch (StateValueTypeException e) {
                 Activator.getDefault().logError("Error adding the merged request information", e); //$NON-NLS-1$
             }
         }
@@ -363,7 +363,7 @@ public class DiskWriteModel extends Disk {
             fSs.modifyAttribute(ts, TmfStateValue.newValueInt(getDriverQueueSize()), fDriverQueueLength);
             int fWaitinQueueLength = fSs.getQuarkRelativeAndAdd(getQuark(), Attributes.WAITING_QUEUE_LENGTH);
             fSs.modifyAttribute(ts, TmfStateValue.newValueInt(getWaitingQueueSize()), fWaitinQueueLength);
-        } catch (StateValueTypeException | AttributeNotFoundException e) {
+        } catch (StateValueTypeException e) {
             Activator.getDefault().logError("Error updating queues lengths", e); //$NON-NLS-1$
         }
     }
This page took 0.024915 seconds and 5 git commands to generate.