Commit 1315a996c94f73a1caafaa3222e8096eb9dd4325
1 parent
baa0bed7
region not a disk as feature not implemented exception
Showing
1 changed file
with
1 additions
and
1 deletions
src/model/GModelSpatial.cpp
| ... | ... | @@ -417,7 +417,7 @@ double GModelSpatial::flux(GSkyRegion* reg, |
| 417 | 417 | else { |
| 418 | 418 | std::string msg = "Flux can only be computed for a" |
| 419 | 419 | " circular region."; |
| 420 | - throw GException::runtime_error(G_FLUX, msg); | |
| 420 | + throw GException::feature_not_implemented(G_FLUX,msg); | |
| 421 | 421 | |
| 422 | 422 | }// endif region is a circle |
| 423 | 423 | ... | ... |