Minor improvements to ContentManagementException (FINERACT-1202)
This commit is contained in:
committed by
Petri Tuomola
parent
e57b7daad1
commit
6125cccef0
+4
-17
@@ -18,14 +18,12 @@
|
||||
*/
|
||||
package org.apache.fineract.infrastructure.documentmanagement.exception;
|
||||
|
||||
import com.amazonaws.AmazonClientException;
|
||||
import java.io.IOException;
|
||||
import org.apache.fineract.infrastructure.core.exception.AbstractPlatformDomainRuleException;
|
||||
|
||||
public class ContentManagementException extends AbstractPlatformDomainRuleException {
|
||||
|
||||
public ContentManagementException(final String filename, final String message) {
|
||||
super("error.msg.document.save", "Error while manipulating file " + filename + " due to a File system / Amazon S3 issue " + message,
|
||||
super("error.msg.document.save", "Error while manipulating file " + filename + " due to a ContentRepository issue " + message,
|
||||
filename, message);
|
||||
}
|
||||
|
||||
@@ -34,19 +32,8 @@ public class ContentManagementException extends AbstractPlatformDomainRuleExcept
|
||||
+ fileSize / (1024 * 1024) + " MB exceeds the max permissable file size of " + maxFileSize + " MB", name, fileSize);
|
||||
}
|
||||
|
||||
public ContentManagementException(String filename, String message, IOException ioException) {
|
||||
super("error.msg.document.save", "Error while manipulating file " + filename + " due to a File system / Amazon S3 issue " + message,
|
||||
filename, message, ioException);
|
||||
public ContentManagementException(String filename, String message, Exception exception) {
|
||||
super("error.msg.document.save", "Error while manipulating file " + filename + " due to a ContentRepository issue " + message,
|
||||
filename, message, exception);
|
||||
}
|
||||
|
||||
public ContentManagementException(String filename, String message, AmazonClientException ace) {
|
||||
super("error.msg.document.save", "Error while manipulating file " + filename + " due to a File system / Amazon S3 issue " + message,
|
||||
filename, message, ace);
|
||||
}
|
||||
|
||||
public ContentManagementException(String filename, String message, ContentManagementException cme) {
|
||||
super("error.msg.document.save", "Error while manipulating file " + filename + " due to a File system / Amazon S3 issue " + message,
|
||||
filename, message, cme);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user