-
-
Save slyphon/9e189a0fb0b57683a778 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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