Commit d5238914 authored by chiaming2000's avatar chiaming2000
Browse files

Merge pull request #10 from Seagate/entry-not-found-exception

Added Entry reference to EntryNotFoundException.
parents 5743091b b2e19bef
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -29,6 +29,9 @@ public class EntryNotFoundException extends KineticException {

    private static final long serialVersionUID = -2377497794808030692L;
    
    // the entry that wasn't found
    private Entry entry;

    public EntryNotFoundException() {
        ;
    }
@@ -45,4 +48,23 @@ public class EntryNotFoundException extends KineticException {
        super(message, cause);
    }

    public EntryNotFoundException(Entry entry) {
        this.entry = entry;
    }

    public EntryNotFoundException(String message, Entry entry) {
        super(message);
        this.entry = entry;
    }

    public EntryNotFoundException(Throwable cause, Entry entry) {
        super(cause);
        this.entry = entry;
    }

    public EntryNotFoundException(String message, Throwable cause, Entry entry) {
        super(message, cause);
        this.entry = entry;
    }

}