Class MissingKeyException

All Implemented Interfaces:
Serializable

public class MissingKeyException extends ImproperEntryException
Indicates a specific key does not exist
Author:
A248
See Also:
Serialized Form
  • Method Details

    • forKey

      public static MissingKeyException forKey(String key)
      Creates the exception using the given key
      Parameters:
      key - the key
      Returns:
      the exception
      Throws:
      NullPointerException - if key is null
    • forKeyAndMessage

      public static MissingKeyException forKeyAndMessage(String key, String message)
      Creates the exception with the given key and message
      Parameters:
      key - the key
      message - the message
      Returns:
      the exception
      Throws:
      NullPointerException - if key or message is null