-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SimDatasetId override to lookup()
- Loading branch information
1 parent
7bebe0d
commit 9fdc699
Showing
5 changed files
with
57 additions
and
6 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
.../java/gov/nasa/jpl/aerie/merlin/server/exceptions/SimulationDatasetMismatchException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package gov.nasa.jpl.aerie.merlin.server.exceptions; | ||
|
||
import gov.nasa.jpl.aerie.merlin.server.models.PlanId; | ||
import gov.nasa.jpl.aerie.merlin.server.models.SimulationDatasetId; | ||
|
||
public class SimulationDatasetMismatchException extends Exception { | ||
public final SimulationDatasetId simDatasetId; | ||
public final PlanId planId; | ||
|
||
public SimulationDatasetMismatchException(final PlanId pid, final SimulationDatasetId sid) { | ||
super("Simulation Dataset with id `" + sid.id() + "` does not belong to Plan with id `"+pid.id()+"`"); | ||
this.planId = pid; | ||
this.simDatasetId = sid; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters