Coverage Report - joptsimple.OptionMissingRequiredArgumentException
 
Classes in this File Line Coverage Branch Coverage Complexity
OptionMissingRequiredArgumentException
100%
3/3
N/A
1
 
 1  
 /*
 2  
  Copyright 2004-2008 Paul R. Holser, Jr.  All rights reserved.
 3  
  Licensed under the Academic Free License version 3.0
 4  
  */
 5  
 
 6  
 package joptsimple;
 7  
 
 8  
 import java.util.List;
 9  
 
 10  
 /**
 11  
  * <p>Thrown when the option parser discovers an option that requires an argument,
 12  
  * but that argument is missing.</p>
 13  
  *
 14  
  * @since 1.0
 15  
  * @author <a href="mailto:pholser@alumni.rice.edu">Paul Holser</a>
 16  
  * @version $Id: OptionMissingRequiredArgumentException.java,v 1.4 2008/05/22 14:03:24 pholser Exp $
 17  
  */
 18  
 class OptionMissingRequiredArgumentException extends OptionException {
 19  
     private static final long serialVersionUID = -1L;
 20  
 
 21  
     OptionMissingRequiredArgumentException( List options ) {
 22  8
         super( options );
 23  8
     }
 24  
 
 25  
     /**
 26  
      * {@inheritDoc}
 27  
      */
 28  
     public String getMessage() {
 29  6
         return "Option " + multipleOptionMessage() + " requires an argument";
 30  
     }
 31  
 }