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

openmrs / openmrs-core / 10621293521

29 Aug 2024 07:19PM CUT coverage: 64.73% (-0.003%) from 64.733%
10621293521

push

github

web-flow
maven(deps): bump net.bytebuddy:byte-buddy from 1.15.0 to 1.15.1 (#4735)

Bumps [net.bytebuddy:byte-buddy](https://github.com/raphw/byte-buddy) from 1.15.0 to 1.15.1.
- [Release notes](https://github.com/raphw/byte-buddy/releases)
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
- [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.15.0...byte-buddy-1.15.1)

---
updated-dependencies:
- dependency-name: net.bytebuddy:byte-buddy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

22959 of 35469 relevant lines covered (64.73%)

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/ConceptsLockedException.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
import org.openmrs.util.OpenmrsConstants;
13

14
/**
15
 * This exception is thrown when a specific implementation has chosen to lock down their concepts
16
 * and prevent editing. Currently this is simply done through a global property being true/false.
17
 * Any call that will manipulate a concept or concept_* table should throw this.
18
 * 
19
 * @see OpenmrsConstants#GLOBAL_PROPERTY_CONCEPTS_LOCKED
20
 * @see ConceptService#checkIfLocked()
21
 * @see ConceptService#saveConcept(org.openmrs.Concept)
22
 */
23
public class ConceptsLockedException extends APIException {
24
        
25
        private static final long serialVersionUID = 132352321232223L;
26
        
27
        /**
28
         * Generic constructor that gives a normal message about editing not being allowed to the user.
29
         */
30
        public ConceptsLockedException() {
31
                this("The concepts are currently locked. Editing of concepts is not allowed at this time.");
×
32
        }
×
33
        
34
        /**
35
         * Convenience constructor to give the user a message other than normal default one
36
         * 
37
         * @param message the String to show to the user as to why the concepts are locked
38
         */
39
        public ConceptsLockedException(String message) {
40
                super(message);
×
41
        }
×
42
        
43
        /**
44
         * Convenience constructor to give the user a message other than the normal one and to chain
45
         * this exception with a parent exception.
46
         * 
47
         * @param message the String to show to the user as to why the concepts are locked
48
         * @param cause the parent exception
49
         */
50
        public ConceptsLockedException(String message, Throwable cause) {
51
                super(message, cause);
×
52
        }
×
53
        
54
        /**
55
         * Convenience constructor used to only set the parent exception to chain with. This does not
56
         * set the error message for the user as to why an exception is being thrown. The
57
         * {@link #ConceptsLockedException(String, Throwable)} constructor is preferred over this one.
58
         * 
59
         * @param cause the parent exception
60
         */
61
        public ConceptsLockedException(Throwable cause) {
62
                super(cause);
×
63
        }
×
64
}
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