Browse Source

More use of PrismNotSupportedException.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@10004 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 11 years ago
parent
commit
3fa59734a9
  1. 12
      prism/src/prism/Prism.java

12
prism/src/prism/Prism.java

@ -1884,7 +1884,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
currentModel = expf2mtbdd.build(explicitFilesStatesFile, explicitFilesTransFile, explicitFilesLabelsFile, currentModulesFile,
explicitFilesNumStates);
} else {
throw new PrismException("Explicit import not yet supported for explicit engine");
throw new PrismNotSupportedException("Explicit import not yet supported for explicit engine");
}
break;
default:
@ -2086,7 +2086,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
JDDNode tmp;
if (getExplicit())
throw new PrismException("Export to Spy file not yet supported by explicit engine");
throw new PrismNotSupportedException("Export to Spy file not yet supported by explicit engine");
// Build model, if necessary
buildModelIfRequired();
@ -2117,7 +2117,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
public void exportToDotFile(File file) throws FileNotFoundException, PrismException
{
if (getExplicit())
throw new PrismException("Export to Dot file not yet supported by explicit engine");
throw new PrismNotSupportedException("Export to Dot file not yet supported by explicit engine");
// Build model, if necessary
buildModelIfRequired();
@ -2180,7 +2180,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
currentModelExpl.exportToPrismExplicitTra(tmpLog);
break;
case Prism.EXPORT_MATLAB:
throw new PrismException("Export not yet supported");
throw new PrismNotSupportedException("Export not yet supported");
case Prism.EXPORT_DOT:
currentModelExpl.exportToDotFile(tmpLog);
break;
@ -2189,7 +2189,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
break;
case Prism.EXPORT_MRMC:
case Prism.EXPORT_ROWS:
throw new PrismException("Export not yet supported");
throw new PrismNotSupportedException("Export not yet supported");
}
tmpLog.close();
}
@ -2222,7 +2222,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
String s;
if (getExplicit())
throw new PrismException("Export of state rewards not yet supported by explicit engine");
throw new PrismNotSupportedException("Export of state rewards not yet supported by explicit engine");
// rows format does not apply to vectors
if (exportType == EXPORT_ROWS)

Loading…
Cancel
Save