Coverage Report - joptsimple.UnrecognizedOptionException
 
Classes in this File Line Coverage Branch Coverage Complexity
UnrecognizedOptionException
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.Collections;
 9  
 
 10  
 /**
 11  
  * <p>Thrown when the option parser encounters an unrecognized option.</p>
 12  
  *
 13  
  * @since 1.0
 14  
  * @author <a href="mailto:pholser@alumni.rice.edu">Paul Holser</a>
 15  
  * @version $Id: UnrecognizedOptionException.java,v 1.3 2008/04/18 15:12:08 pholser Exp $
 16  
  */
 17  
 class UnrecognizedOptionException extends OptionException {
 18  
     private static final long serialVersionUID = -1L;
 19  
 
 20  
     UnrecognizedOptionException( String option ) {
 21  24
         super( Collections.singletonList( option ) );
 22  24
     }
 23  
     
 24  
     /**
 25  
      * {@inheritDoc}
 26  
      */
 27  
     public String getMessage() {
 28  8
         return singleOptionMessage() + " is not a recognized option";
 29  
     }
 30  
 }