Package au.net.causal.projo.prefs

Examples of au.net.causal.projo.prefs.PreferencesException


     
      if (!Advapi32Util.registryKeyExists(root, curPath))
      {
        boolean created = Advapi32Util.registryCreateKey(root, parentPath, segment);
        if (!created)
          throw new PreferencesException("Failed to create registry key " + root + NODE_SEPARATOR + parentPath + NODE_SEPARATOR + segment);
      }
    } 
  }
View Full Code Here


      else
        throw new UnsupportedDataTypeException(metadata.getDataType());
    }
    catch (Win32Exception e)
    {
      throw new PreferencesException(e.getMessage(), e);
    }
  }
View Full Code Here

      else
        throw new UnsupportedDataTypeException(metadata.getDataType());
    }
    catch (Win32Exception e)
    {
      throw new PreferencesException(e.getMessage(), e);
    }
  }
View Full Code Here

    {
      Advapi32Util.registryDeleteValue(root, winRegKey, key);
    }
    catch (Win32Exception e)
    {
      throw new PreferencesException(e.getMessage(), e);
    }
  }
View Full Code Here

      {
        Advapi32Util.registryDeleteValue(root, winRegKey, keyName);
      }
      catch (Win32Exception e)
      {
        throw new PreferencesException(e.getMessage(), e);
      }
    }
  }
View Full Code Here

    {
      RegistryUtils.deleteKeyWithChildren(root, winRegKey + RegistryUtils.NODE_SEPARATOR + name);
    }
    catch (Win32Exception e)
    {
      throw new PreferencesException(e.getMessage(), e);
    }
  }
View Full Code Here

    {
      return(Advapi32Util.registryGetValues(root, winRegKey).keySet());
    }
    catch (Win32Exception e)
    {
      throw new PreferencesException(e.getMessage(), e);
    }
  }
View Full Code Here

    {
      return(Integer.valueOf(s));
    }
    catch (NumberFormatException e)
    {
      throw new PreferencesException("Failed to convert value '" + s + "' to an integer.", e);
    }
  }
View Full Code Here

    {
      return(encrypter.encrypt(data));
    }
    catch (EncryptionOperationNotPossibleException e)
    {
      throw new PreferencesException("Encryption failed: " + e, e);
    }
    catch (UserAbortedEnteringPasswordException e)
    {
      throw new PreferencesException("User aborted encryption.", e);
    }
  }
View Full Code Here

    {
      return(encrypter.decrypt(data));
    }
    catch (EncryptionOperationNotPossibleException e)
    {
      throw new PreferencesException("Decryption failed: " + e, e);
    }
    catch (UserAbortedEnteringPasswordException e)
    {
      throw new PreferencesException("User aborted decryption.", e);
    }
  }
View Full Code Here

TOP

Related Classes of au.net.causal.projo.prefs.PreferencesException

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.