package com.skraylabs.poker.model;

/**
 * A checked exception thrown when a string cannot be resolved to the expected {@link Pocket}
 * format.
 */
public class PocketFormatException extends PokerFormatException {

  /**
   * Generated serial ID.
   */
  private static final long serialVersionUID = -5796448563294667769L;

  /**
   * Default detail message used when the invalid string sample is not provided.
   */
  public static final String MSG_DEFAULT =
      "The provided string could not be resolved to a Pocket format.";

  /**
   * Detail message used when the invalid string sample is provided. Expects one String argument.
   */
  public static final String MSG_WITH_INVALID_STRING =
      "The string <\"%s\"> could not be resolved to a Pocket format.";

  /**
   * Default constructor.
   */
  public PocketFormatException() {
  }

  /**
   * Initializing constructor.
   *
   * @param invalidString offending string
   */
  public PocketFormatException(String invalidString) {
  }
}
@@ -832,24 +832,48 @@
 ception() %7B%0A
+    super(MSG_DEFAULT);%0A
   %7D%0A%0A  /**%0A 
@@ -1011,13 +1011,189 @@
 ring) %7B%0A
+    super(formatMessageForInvalidString(MSG_DEFAULT, MSG_WITH_INVALID_STRING, invalidString));%0A    if (invalidString != null) %7B%0A      this.invalidString = invalidString;%0A    %7D%0A
   %7D%0A%7D

Implement constructors for PocketFormatException.