-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature-57: deleteObject
Refactor
#58
Changes from 250 commits
d1aaf32
d56b9b1
20a2092
c86bb10
c66b5a1
97cc255
5297773
90b4d5a
f3e4fea
786f81e
fd605a8
7a343cb
519f9b6
6fb8abe
4c9348a
0c3fc66
5fa19f8
bc0be54
1a3835d
9aef583
645d3e7
644eae5
14062e5
3189118
a76fe7a
6261abc
71cbae8
059fee1
c01d2f3
0bc5c06
702f90f
fa17489
321a44e
e397cbb
3f3f828
09b6549
e53f782
5e8b98e
1a1f75f
67f7862
898920c
0ffc8a6
e376f5d
752fbe3
2e71f8f
d7d79ca
fe1621a
63828e5
0680809
b3d7a56
b0c23d8
87ac4b2
be50903
d6e1647
93225e4
7780992
f59507f
3a2a845
5db413f
0b9b6aa
d0eeea2
45c844a
0875de3
94d5109
ec1e9f3
f192ae4
2ec1616
2d20d82
44a5598
0bfb95b
e2bceee
8f3d5d9
c35be2a
a1d0ef4
7dba739
d91aa8f
8b57caf
d1d048e
d49ce47
a8f3753
eb01034
738c2f3
fe21ef9
8f7f26d
2149abd
ccc2a6e
7c3bf4c
011f609
9529973
f1211ce
cdab02a
f1f6b75
7d2b576
8818765
df96c67
7202868
8e42e4d
af95ea7
4206c45
1a93682
b2a98fb
d412ad9
e9d5956
d986b7b
c9e5d51
f56b3cf
7e007f1
4739abb
05ca2c8
e0b6a6b
c2b148c
11dea30
1afce09
1694d32
4c3afaf
076e7a3
52a7568
9b65a37
f17c967
2f7b790
83a3e8f
9b4d57c
25a970b
2734f03
9a99113
9e1d9e2
d890db6
9020775
6c727fa
bfe2f27
5a69daf
259bf54
b06d8c6
18d2e25
cbd494d
30e1e09
5e2e7f1
742eeac
e96a517
b6d56cc
9eef991
355dd1b
81cb5ed
84f8dc7
60127a4
08e7c7e
bb47568
e0c3bb7
47841f1
a60586c
fd290ea
ccda4c5
947459a
487bbce
c2b67de
3b5b7d6
83382f9
cebdd2f
c778e2d
261ca00
75b56c2
cc1a43b
207937a
9010843
67bd37c
e6e1018
3ccc3eb
f92ccca
c2098d3
b0c5414
d2f73b4
8cd0d34
f649697
3d00b4b
7474db3
0e0dfcf
6c7e151
e9b4b24
6ad3c01
30d7f88
8f323f5
9d096f3
6ff1336
8bee29d
8617f17
71dc486
28cfa7a
b0f86a5
2fc6721
08f2c79
7aa852d
2ea427b
38d0924
f76a13c
b044728
8442d66
2cbec48
9f3dac9
489f4db
1a12765
f28b522
2012a2a
41375e0
1da579c
8b8ef2d
a306271
96235b8
4d382a5
1f33e7d
4770050
2fea9ff
e327e91
a1870cc
b58b26c
9e75b30
58e73ab
252cefa
d961d35
5542a9c
1c61165
6591f44
dd9a2a7
56afebc
38ebd81
d1d2559
da143f3
5309243
d842a59
0181107
b3d0ea1
b884303
906ea73
ce07581
5bce0ce
75ba6c0
f5ca23d
84846f4
f369441
dc6a6fb
7ba3b73
1eabe79
0bd9a3f
189eaf3
8ceb641
b94eb2c
4561f79
962ed5b
a9fce58
6a0c32b
d61d9c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
artntek marked this conversation as resolved.
Show resolved
Hide resolved
|
artntek marked this conversation as resolved.
Show resolved
Hide resolved
|
Large diffs are not rendered by default.
artntek marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LOVE seeing a whole file be collapsed down to one line 🤣 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Me too, it's so clean now! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.dataone.hashstore.exceptions; | ||
|
||
/** | ||
* Custom exception class for FileHashStore when the expected cid is not found in the pid refs file. | ||
*/ | ||
public class CidNotFoundInPidRefsFileException extends IllegalArgumentException { | ||
|
||
public CidNotFoundInPidRefsFileException(String message) { | ||
super(message); | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.dataone.hashstore.exceptions; | ||
|
||
import java.nio.file.FileAlreadyExistsException; | ||
|
||
/** | ||
* Custom exception thrown when called to tag a pid and cid, and reference files already exist | ||
*/ | ||
public class HashStoreRefsAlreadyExistException extends FileAlreadyExistsException { | ||
|
||
public HashStoreRefsAlreadyExistException(String message) { | ||
super(message); | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.dataone.hashstore.exceptions; | ||
|
||
/** | ||
* An exception that encapsulates errors from the HashStore Runnable Test Class | ||
*/ | ||
public class HashStoreServiceException extends Exception { | ||
public HashStoreServiceException(String message) { | ||
super(message); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.dataone.hashstore.exceptions; | ||
|
||
import java.util.NoSuchElementException; | ||
|
||
/** | ||
* An exception thrown when hexDigests from a supplied ObjectMetadata object is empty. | ||
*/ | ||
public class MissingHexDigestsException extends NoSuchElementException { | ||
|
||
public MissingHexDigestsException(String message) { | ||
super(message); | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.dataone.hashstore.exceptions; | ||
|
||
/** | ||
* An exception thrown when a checksum does not match what is expected. | ||
*/ | ||
|
||
public class NonMatchingChecksumException extends IllegalArgumentException { | ||
|
||
public NonMatchingChecksumException(String message) { | ||
super(message); | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.dataone.hashstore.exceptions; | ||
|
||
/** | ||
* An exception thrown when a data object size does not match what is expected. | ||
*/ | ||
|
||
public class NonMatchingObjSizeException extends IllegalArgumentException { | ||
|
||
public NonMatchingObjSizeException(String message) { | ||
super(message); | ||
} | ||
|
||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I read this first, to re-familiarize myself with the project & design, which is why I've flagged a few things that may be confusing to the reader. I am that confused reader 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for reviewing this first (and great idea to get a refresher)! I do not wish to be that confusing writer, so your feedback is much appreciated. I've made the changes and agree with your suggestions.