Author: [log in to unmask]
Date: Tue Jan 27 18:50:25 2015
New Revision: 3497
Log:
Change UnsupportedOperationException to RuntimeException because for some reason the LCSimLoop does not handle the latter properly and suppresses the traceback message.
Modified:
projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/tracker/silicon/HpsTestRunSiSensor.java
Modified: projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/tracker/silicon/HpsTestRunSiSensor.java
=============================================================================
--- projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/tracker/silicon/HpsTestRunSiSensor.java (original)
+++ projects/lcsim/trunk/detector-framework/src/main/java/org/lcsim/detector/tracker/silicon/HpsTestRunSiSensor.java Tue Jan 27 18:50:25 2015
@@ -60,14 +60,12 @@
@Override
public int getFebID(){
- throw new UnsupportedOperationException(
- "A test run half-module was not identified using a FEB ID");
+ throw new RuntimeException("This method is not supported for the HpsTestRunSiSensor.");
}
@Override
public int getFebHybridID(){
- throw new UnsupportedOperationException(
- "A test run half-module was not identified using a FEB Hybrid ID");
+ throw new RuntimeException("This method is not supported for the HpsTestRunSiSensor.");
}
/**
@@ -89,14 +87,12 @@
}
@Override
- public void setFebID(int febID){
- throw new UnsupportedOperationException(
- "A test run half-module was not identified using a FEB ID");
+ public void setFebID(int febID) {
+ throw new RuntimeException("This method is not supported for the HpsTestRunSiSensor.");
}
@Override
- public void setFebHybridID(int febHybridID){
- throw new UnsupportedOperationException(
- "A test run half-module was not identified using a FEB Hybrid ID");
+ public void setFebHybridID(int febHybridID) {
+ throw new RuntimeException("This method is not supported for the HpsTestRunSiSensor.");
}
}
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the LCDET-SVN list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCDET-SVN&A=1
|