Package com.sharkysoft.util

Examples of com.sharkysoft.util.UnreachableCodeException


        break;
      case LANGUAGE:
        entry.language = key;
        break;
      default:
        throw new UnreachableCodeException();
      }
      entry.value = data.get(key);
      result.add(entry);
    }
    return result;
View Full Code Here


        // ignored
        LOG.debug("Cannot create structural element " + docStructType + " as child of "
            + (logicalNode.getType() != null ? logicalNode.getType().getName() : "without type")
            + " because it isn’t allowed by the rule set.");
      } catch (TypeNotAllowedForParentException e) {
        throw new UnreachableCodeException("TypeNotAllowedForParentException is never thrown"); // see https://github.com/goobi/goobi-ugh/issues/2
      } catch (Exception e) {
        // copy rule failed, skip it
        LOG.debug(
            "Cannot create structural element " + docStructType + " as child of "
                + (logicalNode.getType() != null ? logicalNode.getType().getName() : "without type")
View Full Code Here

TOP

Related Classes of com.sharkysoft.util.UnreachableCodeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.