congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SignatureManagerException
Code IndexAdd Tabnine to your IDE (free)

How to use
SignatureManagerException
in
uk.gov.nationalarchives.droid.core.interfaces.signature

Best Java code snippets using uk.gov.nationalarchives.droid.core.interfaces.signature.SignatureManagerException (Showing top 10 results out of 315)

origin: uk.gov.nationalarchives/droid-core-interfaces

/**
 * @return The cause message.
 */
public String getCauseMessage() {
  return getCause().getCause().getMessage();
}
 
origin: uk.gov.nationalarchives/droid-core-interfaces

  /**
   * {@inheritDoc}
   */
  @Override
  public String getLocalizedMessage() {
    return String.format("Error updating signature file:\n%s\nReason: %s - %s", 
        getMessage(),
        getCauseType(),
        getCauseMessage());
  }
}
origin: digital-preservation/droid

/**
 * {@inheritDoc}
 */
@Override
public void execute() throws CommandExecutionException {
  try {
    Map<SignatureType, SignatureFileInfo> signatureFileInfos = signatureManager.getLatestSignatureFiles();
    if (signatureFileInfos.isEmpty()) {
      printWriter.println(I18N.getResource(I18N.CHECK_SIGNATURE_UPDATE_UNAVAILABLE));
    } else {
      for (SignatureFileInfo sigFileInfo : signatureFileInfos.values()) {
        printWriter.println(I18N.getResource(I18N.CHECK_SIGNATURE_UPDATE_SUCCESS,
            sigFileInfo.getType(), sigFileInfo));
      }
    }
  } catch (SignatureManagerException e) {
    throw new CommandExecutionException(I18N.getResource(I18N.CHECK_SIGNATURE_UPDATE_ERROR, 
        e.getCause().getMessage(), e.getCauseType(), e.getCauseMessage()), 
        e.getCause());
  }        
}
 
origin: uk.gov.nationalarchives/droid-results

  } catch (ConfigurationException e) {
    log.error(e);
    throw new SignatureManagerException(e);
throw new SignatureManagerException(e);
origin: digital-preservation/droid

/**
 * {@inheritDoc}
 */
@Override
public void execute() throws CommandExecutionException {
  try {
    Map<SignatureType, SignatureFileInfo> signatureFileInfos = signatureManager.getLatestSignatureFiles();
    if (signatureFileInfos.isEmpty()) {
      printWriter.println(I18N.getResource(I18N.CHECK_SIGNATURE_UPDATE_UNAVAILABLE));
    } else {
      for (SignatureFileInfo sigFileInfo : signatureFileInfos.values()) {
        signatureManager.downloadLatest(sigFileInfo.getType());
        printWriter.println(I18N.getResource(I18N.DOWNLOAD_SIGNATURE_UPDATE_SUCCESS, 
            sigFileInfo.getVersion()));
      }
    }
  } catch (SignatureManagerException e) {
    throw new CommandExecutionException(
      I18N.getResource(I18N.DOWNLOAD_SIGNATURE_UPDATE_ERROR, 
          e.getCause().getMessage(), e.getCauseType(), e.getCauseMessage()), 
      e.getCause());
  }
}
 
origin: digital-preservation/droid

  } catch (ConfigurationException e) {
    log.error(e.getMessage(), e);
    throw new SignatureManagerException(e);
throw new SignatureManagerException(e);
origin: digital-preservation/droid

  /**
   * {@inheritDoc}
   */
  @Override
  public String getLocalizedMessage() {
    return String.format("Error updating signature file:\n%s\nReason: %s - %s", 
        getMessage(),
        getCauseType(),
        getCauseMessage());
  }
}
origin: digital-preservation/droid

/**
 * @return The cause message.
 */
public String getCauseMessage() {
  return getCause().getCause().getMessage();
}
 
origin: uk.gov.nationalarchives/droid-core-interfaces

/**
 * The cause type.
 * @return The cause type
 */
public String getCauseType() {
  return getCause().getCause().getClass().getName();
}
 
origin: digital-preservation/droid

/**
 * The cause type.
 * @return The cause type
 */
public String getCauseType() {
  return getCause().getCause().getClass().getName();
}
 
uk.gov.nationalarchives.droid.core.interfaces.signatureSignatureManagerException

Most used methods

  • getCause
  • getCauseMessage
  • getCauseType
    The cause type.
  • <init>
  • getMessage

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • JFrame (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now