
org.dellroad.hl7.HL7ContentException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hl7lib Show documentation
Show all versions of hl7lib Show documentation
Lightweight Java library for HL7 messages
The newest version!
/*
* Copyright (C) 2008 Archie L. Cobbs. All rights reserved.
*/
package org.dellroad.hl7;
/**
* Exception thrown to indicate invalid HL7 content was encountered.
*/
@SuppressWarnings("serial")
public class HL7ContentException extends Exception {
private String content;
public HL7ContentException() {
}
public HL7ContentException(String message) {
super(message);
}
public HL7ContentException(String message, Throwable cause) {
super(message, cause);
}
public HL7ContentException(Throwable cause) {
super(cause);
}
/**
* Get the offending content.
*
* @return offending text, or {@code null} if none was associated with this instance
*/
public String getContent() {
return this.content;
}
/**
* Record the offending text.
*
* @param content offending text
* @return this instance
*/
public HL7ContentException setContent(String content) {
this.content = content;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy