Skip to content
Snippets Groups Projects
Commit 743f1e8f authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- improved error message

parent 6eaa690f
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</fr:x_form> </fr:x_form>
</pl:initParameters> </pl:initParameters>
<pl:description>SLUB Storage Plugin</pl:description> <pl:description>SLUB Storage Plugin</pl:description>
<pl:version>2.806</pl:version> <pl:version>2.807</pl:version>
<pl:materialType>DIGITAL</pl:materialType> <pl:materialType>DIGITAL</pl:materialType>
<pl:module>Repository</pl:module> <pl:module>Repository</pl:module>
<pl:generalType>TASK</pl:generalType> <pl:generalType>TASK</pl:generalType>
......
/* /*
2014 by Andreas Romeyke (SLUB Dresden) 2014-2016 by Andreas Romeyke (SLUB Dresden)
The code contributed by SLUB is licensed under apache 2.0 and based partially The code contributed by SLUB is licensed under apache 2.0 and based partially
on NFS Storage Plugin, on NFS Storage Plugin,
...@@ -436,8 +436,8 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { ...@@ -436,8 +436,8 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
DnxDocument iedoc = storedEntityMetaData.getIeDnx(); DnxDocument iedoc = storedEntityMetaData.getIeDnx();
log.debug("SLUBStoragePlugin.getStreamRelativePath() getIeDnx fine"); log.debug("SLUBStoragePlugin.getStreamRelativePath() getIeDnx fine");
if (null == iedoc) { if (null == iedoc) {
log.error ("SLUBStoragePlugin.getStreamRelativePath no iedoc found, do you use plugin for others than permanent data? You should not!"); log.error ("SLUBStoragePlugin.getStreamRelativePath no iedoc found, do you use plugin for others than permanent data (IE and filestream)? You should not! Also do not use it for SIPstoragePermanentGroup!");
throw new Exception("error, no iedoc found, do you use plugin for others than permanent data? You should not!"); throw new Exception("error, no iedoc found, do you use plugin for others than permanent data (IE and filestream)? You should not! Also do not use it for SIPstoragePermanentGroup!");
} }
StoredEntityMetaData.EntityType entityType = storedEntityMetaData.getEntityType(); StoredEntityMetaData.EntityType entityType = storedEntityMetaData.getEntityType();
log.debug("SLUBStoragePlugin.getStreamRelativePath() getEntityType fine"); log.debug("SLUBStoragePlugin.getStreamRelativePath() getEntityType fine");
...@@ -445,8 +445,8 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { ...@@ -445,8 +445,8 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
log.debug("entitytype='" + entitytype + "'"); log.debug("entitytype='" + entitytype + "'");
DnxSection iesec = iedoc.getSectionById("internalIdentifier"); DnxSection iesec = iedoc.getSectionById("internalIdentifier");
if (null == iesec) { if (null == iesec) {
log.error ("SLUBStoragePlugin.getStreamRelativePath no section in entity of type "+entitytype +" with 'internalIdentfier' in associated iedoc found, do you use plugin for others than permanent data? You should not!"); log.error ("SLUBStoragePlugin.getStreamRelativePath no section in entity of type "+entitytype +" with 'internalIdentfier' in associated iedoc found, do you use plugin for others than permanent data (IE and filestream)? You should not! Also do not use it for SIPstoragePermanentGroup!");
throw new Exception("error, no section in entity of type "+entitytype +" with 'internalIdentfier' in associated iedoc found, do you use plugin for others than permanent data? You should not!"); throw new Exception("error, no section in entity of type "+entitytype +" with 'internalIdentfier' in associated iedoc found, do you use plugin for others than permanent data (IE and filestream)? You should not! Also do not use it for SIPstoragePermanentGroup!");
} }
String iepid = null; String iepid = null;
log.debug("SLUBStoragePlugin.getStreamRelativePath iesec=" + iesec.toString()); log.debug("SLUBStoragePlugin.getStreamRelativePath iesec=" + iesec.toString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment