BakeoutController-Basic  0.1
A Controller for the Omicron vacuum chamber
NegativeDurationException.java
1 package exceptions;
2 
3 import java.time.Duration;
4 
8 public class NegativeDurationException extends Exception {
14  public NegativeDurationException(Duration duration){
15  super(constructMessage(duration));
16  }
17 
23  private static String constructMessage(Duration duration){
24  return String.format(
25  "Attempted to set duration to %s", duration
26  );
27  }
28 }
Git Repo