001package ca.uhn.hl7v2.hoh.api; 002 003public class NonHl7ResponseException extends DecodeException { 004 005 private String myContentType; 006 private String myResponseBody; 007 008 public NonHl7ResponseException(String theMessage, String theContentType, String theResponseBody) { 009 super(theMessage); 010 myContentType = theContentType; 011 myResponseBody = theResponseBody; 012 } 013 014 /** 015 * @return the contentType 016 */ 017 public String getContentType() { 018 return myContentType; 019 } 020 021 /** 022 * @return the responseBody 023 */ 024 public String getResponseBody() { 025 return myResponseBody; 026 } 027 028 private static final long serialVersionUID = 1L; 029 030}