Coverage Report - org.apache.tapestry.portlet.PortletMessages
 
Classes in this File Line Coverage Branch Coverage Complexity
PortletMessages
0%
0/10
N/A
1
 
 1  
 // Copyright 2005 The Apache Software Foundation
 2  
 //
 3  
 // Licensed under the Apache License, Version 2.0 (the "License");
 4  
 // you may not use this file except in compliance with the License.
 5  
 // You may obtain a copy of the License at
 6  
 //
 7  
 //     http://www.apache.org/licenses/LICENSE-2.0
 8  
 //
 9  
 // Unless required by applicable law or agreed to in writing, software
 10  
 // distributed under the License is distributed on an "AS IS" BASIS,
 11  
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12  
 // See the License for the specific language governing permissions and
 13  
 // limitations under the License.
 14  
 
 15  
 package org.apache.tapestry.portlet;
 16  
 
 17  
 import org.apache.hivemind.impl.MessageFormatter;
 18  
 
 19  
 /**
 20  
  * @author Howard M. Lewis Ship
 21  
  * @since 4.0
 22  
  */
 23  
 final class PortletMessages
 24  
 {
 25  
 
 26  0
     private static final MessageFormatter _formatter = new MessageFormatter(
 27  0
             PortletMessages.class);
 28  
 
 29  
     /* defeat instantiation */
 30  
     private PortletMessages()
 31  0
     {
 32  0
     }
 33  
 
 34  
     static String unsupportedMethod(String methodName)
 35  
     {
 36  0
         return _formatter.format("unsupported-method", methodName);
 37  
     }
 38  
 
 39  
     static String errorGettingResource(String path, Throwable cause)
 40  
     {
 41  0
         return _formatter.format("error-getting-resource", path, cause);
 42  
     }
 43  
 
 44  
     static String errorProcessingAction(Throwable cause)
 45  
     {
 46  0
         return _formatter.format("error-processing-action", cause);
 47  
     }
 48  
 
 49  
     static String errorProcessingRender(Throwable cause)
 50  
     {
 51  0
         return _formatter.format("error-processing-render", cause);
 52  
     }
 53  
 
 54  
     static String errorReportingException(Throwable cause)
 55  
     {
 56  0
         return _formatter.format("error-reporting-exception", cause);
 57  
     }
 58  
 
 59  
     static String staleSession()
 60  
     {
 61  0
         return _formatter.getMessage("stale-session");
 62  
     }
 63  
 }