de.schlichtherle.license.LicenseContentException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truelicense-core Show documentation
Show all versions of truelicense-core Show documentation
The core of the TrueLicense Library Collection.
/*
* Copyright (C) 2005-2015 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package de.schlichtherle.license;
/**
* Thrown if validating a license certificate fails.
*
* @author Christian Schlichtherle
* @version $Id$
*/
public class LicenseContentException extends java.lang.Exception {
private static final long serialVersionUID = 1L;
/**
* Constructs an instance of {@code LicenseContentException}
* with the given {@code resourceKey} to lookup the localized detail
* message with.
*
* @param resourceKey The key to use to lookup the localized detail
* message when {@link #getLocalizedMessage()} is called
* - may not be {@code null}.
*/
public LicenseContentException(String resourceKey) {
super(resourceKey);
}
public String getLocalizedMessage() {
return Resources.getString(super.getMessage());
}
}