Example usage for com.liferay.portal.kernel.exception InvalidRepositoryException InvalidRepositoryException

List of usage examples for com.liferay.portal.kernel.exception InvalidRepositoryException InvalidRepositoryException

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.exception InvalidRepositoryException InvalidRepositoryException.

Prototype

public InvalidRepositoryException(Throwable cause) 

Source Link

Usage

From source file:com.liferay.document.library.repository.cmis.internal.CMISRepositoryUtil.java

License:Open Source License

public static String getTypeSettingsValue(UnicodeProperties typeSettingsProperties, String typeSettingsKey)
        throws InvalidRepositoryException {

    String value = typeSettingsProperties.getProperty(typeSettingsKey);

    if (Validator.isNull(value)) {
        throw new InvalidRepositoryException("Properties value cannot be null for key " + typeSettingsKey);
    }/* w  ww.ja v  a 2s.  co m*/

    return value;
}