Skip to content

Instantly share code, notes, and snippets.

@danlynn
Created April 20, 2010 20:24
Show Gist options
  • Select an option

  • Save danlynn/373015 to your computer and use it in GitHub Desktop.

Select an option

Save danlynn/373015 to your computer and use it in GitHub Desktop.
package com.usps.webservice.msg;
public class ResponseWrapper<E> {
private Object response = null;
public ResponseWrapper(E response) {
this.response = response;
}
public ResponseWrapper(RspError rspError) {
this.response = rspError;
}
public ResponseWrapper(Exception e) {
this.response = e;
}
public Object getResponse() {
return response;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment