Skip to content

Instantly share code, notes, and snippets.

@slyphon
Created April 12, 2010 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slyphon/9e189a0fb0b57683a778 to your computer and use it in GitHub Desktop.
Save slyphon/9e189a0fb0b57683a778 to your computer and use it in GitHub Desktop.
package mbox.harpo.errors;
import clojure.lang.IMeta;
import clojure.lang.IPersistentMap;
import clojure.lang.IObj;
public class RecordNotFound extends HarpoException implements IMeta, IObj {
IPersistentMap meta;
public RecordNotFound() { super(); }
public RecordNotFound(String message) { super(message); }
public RecordNotFound(String message, Throwable cause) { super(message, cause); }
public RecordNotFound(Throwable cause) { super(cause); }
public RecordNotFound(IPersistentMap meta, String message, Throwable cause) {
super(message, cause);
this.meta = meta;
}
public IObj withMeta(IPersistentMap meta) {
return new RecordNotFound(meta, getMessage(), getCause());
}
public IPersistentMap meta() {
return this.meta;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment