Skip to content

Commit

Permalink
GCI-142: Removed APIException (openmrs#2781)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisht13 authored and dkayiwa committed Nov 12, 2018
1 parent b8c4f41 commit 5039d20
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion api/src/main/java/org/openmrs/Allergies.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void clear() {
allergies.clear();
}

public void confirmNoKnownAllergies() throws APIException {
public void confirmNoKnownAllergies(){
if (!allergies.isEmpty()) {
throw new APIException("Cannot confirm no known allergies if allergy list is not empty");
}
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/org/openmrs/DosingInstructions.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public interface DosingInstructions {
* @throws APIException if dosing type of passing order is not matched with dosing type of
* implementing dosing instruction
*/
public DosingInstructions getDosingInstructions(DrugOrder order) throws APIException;
public DosingInstructions getDosingInstructions(DrugOrder order);

public void validate(DrugOrder order, Errors errors);

Expand Down
6 changes: 3 additions & 3 deletions api/src/main/java/org/openmrs/FormResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public String getValueReference() {
* @see org.openmrs.customdatatype.SingleCustomValue#getValue()
*/
@Override
public Object getValue() throws InvalidCustomValueException {
public Object getValue(){
if (typedValue == null) {
typedValue = CustomDatatypeUtil.getDatatype(this).fromReferenceString(getValueReference());
}
Expand All @@ -242,7 +242,7 @@ public Object getValue() throws InvalidCustomValueException {
* @see org.openmrs.customdatatype.SingleCustomValue#setValue(java.lang.Object)
*/
@Override
public <T> void setValue(T typedValue) throws InvalidCustomValueException {
public <T> void setValue(T typedValue) {
this.typedValue = typedValue;
dirty = true;
}
Expand All @@ -251,7 +251,7 @@ public <T> void setValue(T typedValue) throws InvalidCustomValueException {
* @see org.openmrs.customdatatype.SingleCustomValue#setValueReferenceInternal(java.lang.String)
*/
@Override
public void setValueReferenceInternal(String valueToPersist) throws InvalidCustomValueException {
public void setValueReferenceInternal(String valueToPersist) {
this.valueReference = valueToPersist;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void setDosingInstructions(DrugOrder order) {
* @see DosingInstructions#getDosingInstructions(DrugOrder)
*/
@Override
public DosingInstructions getDosingInstructions(DrugOrder order) throws APIException {
public DosingInstructions getDosingInstructions(DrugOrder order) {
if (!order.getDosingType().equals(this.getClass())) {
throw new APIException("DrugOrder.error.dosingTypeIsMismatched", new Object[] { this.getClass(),
order.getDosingType() });
Expand Down
6 changes: 3 additions & 3 deletions api/src/main/java/org/openmrs/GlobalProperty.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public String getValueReference() {
* @since 1.9
*/
@Override
public void setValueReferenceInternal(String valueToPersist) throws InvalidCustomValueException {
public void setValueReferenceInternal(String valueToPersist) {
setPropertyValue(valueToPersist);
}

Expand All @@ -277,7 +277,7 @@ public void setValueReferenceInternal(String valueToPersist) throws InvalidCusto
* @since 1.9
*/
@Override
public Object getValue() throws InvalidCustomValueException {
public Object getValue() {
if (typedValue == null) {
typedValue = CustomDatatypeUtil.getDatatypeOrDefault(this).fromReferenceString(getValueReference());
}
Expand All @@ -290,7 +290,7 @@ public Object getValue() throws InvalidCustomValueException {
* @since 1.9
*/
@Override
public <T> void setValue(T typedValue) throws InvalidCustomValueException {
public <T> void setValue(T typedValue){
this.typedValue = typedValue;
dirty = true;
}
Expand Down

0 comments on commit 5039d20

Please sign in to comment.