• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openmrs / openmrs-core / 8602317784

08 Apr 2024 03:00PM CUT coverage: 64.693% (+0.002%) from 64.691%
8602317784

push

github

web-flow
Restrict permissions on token for stale PR job

22763 of 35186 relevant lines covered (64.69%)

0.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/api/src/main/java/org/openmrs/api/InvalidFileTypeException.java
1
/**
2
 * This Source Code Form is subject to the terms of the Mozilla Public License,
3
 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
4
 * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
5
 * the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
6
 *
7
 * Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
8
 * graphic logo is a trademark of OpenMRS Inc.
9
 */
10
package org.openmrs.api;
11

12
/**
13
 * Exception thrown for situations of an invalid file type  
14
 * 
15
 * @see FormService
16
 */
17
public class InvalidFileTypeException extends APIException {
18
        
19
        private static final long serialVersionUID = 1L;
20
        
21
        /**
22
         * Default empty constructor. If at all possible, don't use this one, but use the
23
         * {@link #InvalidFileTypeException(String)} constructor to specify a helpful
24
         * message to the end user
25
         */
26
        public InvalidFileTypeException() {
27
                super();
×
28
        }
×
29
        
30
        /**
31
         * General constructor to give a helpful message that relates to why this error occured
32
         * 
33
         * @param message helpful message string 
34
         */
35
        public InvalidFileTypeException(String message) {
36
                super(message);
×
37
        }
×
38
        
39
        /**
40
         * General constructor to give the end user a helpful message and to also propagate the parent
41
         * error exception message.
42
         *  
43
         * @param message helpful message string for the end user
44
         * @param cause the parent exception cause that this exception is wrapping around
45
         */
46
        public InvalidFileTypeException(String message, Throwable cause) {
47
                super(message, cause);
×
48
        }
×
49
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc