Examples of PreferencesException


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

    {
      return(ImmutableSet.<String>builder().add(pref.childrenNames()).build());
    }
    catch (BackingStoreException e)
    {
      throw new PreferencesException(e);
    }
  }
View Full Code Here

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

    {
      pref.flush();
    }
    catch (BackingStoreException e)
    {
      throw new PreferencesException(e);
    }
  }
View Full Code Here

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

        encryptedPassword = encrypter.encrypt(passwordBytes);
        node.putValue(key, encryptedPassword, new PreferenceKeyMetadata<>(byte[].class));
      }
      catch (EncryptionOperationNotPossibleException e)
      {
        throw new PreferencesException("Failed to encrypt password: " + e, e);
      }
      catch (UserAbortedEnteringPasswordException e)
      {
        //Could be thrown if the encrypter is a sourced encrypter
        //In this case, treat as a cancel
        return(null);
      }
    }
    else
    {
      try
      {
        passwordBytes = encrypter.decrypt(encryptedPassword);
      }
      catch (EncryptionOperationNotPossibleException e)
      {
        throw new PreferencesException("Failed to decrypt password: " + e, e);
      }
      catch (UserAbortedEnteringPasswordException e)
      {
        //Could be thrown if the encrypter is a sourced encrypter
        //In this case, treat as a cancel
View Full Code Here

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

    {
      return(new BigDecimal(s));
    }
    catch (NumberFormatException e)
    {
      throw new PreferencesException("Failed to convert value '" + s + "' to a decimal number.", e);
    }
  }
View Full Code Here

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

          return(Paths.get(uri));
        }
        catch (ProviderNotFoundException | FileSystemNotFoundException e)
        {
          //Error
          throw new PreferencesException("Failed to load filesystem for URI '" + uri.toString() + "'.", e);
        }
      }
    }
    catch (URISyntaxException e)
    {
      //It's not a URI, proceed to next step
    }
   
    //Otherwise this might be specially encoded
    Path p = stringToPathForSpecialFileSystem(s);
    if (p != null)
      return(p);
   
    //If not then treat as a path from the local file system
    try
    {
      return(Paths.get(s));
    }
    catch (InvalidPathException e)
    {
      throw new PreferencesException("Invalid file path: " + s, e);
    }
  }
View Full Code Here

Examples of org.apache.jetspeed.prefs.PreferencesException

              PreferencesImpl.userRoot =  new PreferencesImpl(null, "", PreferencesImpl.USER_NODE_TYPE);           
        }
        catch(Throwable e)
        {
      e.printStackTrace();
            throw new PreferencesException("Failed to initialize prefs api.  "+e.toString());
        }
    }
View Full Code Here

Examples of org.apache.jetspeed.prefs.PreferencesException

            ((Observer)Preferences.userRoot()).update(null, userRoot);
            ((Observer)Preferences.systemRoot()).update(null, systemRoot);
        }
        catch(Throwable e)
        {
            throw new PreferencesException("Failed to initialize prefs api.  "+e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.jetspeed.prefs.PreferencesException

              PreferencesImpl.userRoot =  new PreferencesImpl(null, "", PreferencesImpl.USER_NODE_TYPE);           
        }
        catch(Throwable e)
        {
      e.printStackTrace();
            throw new PreferencesException("Failed to initialize prefs api.  "+e.toString());
        }
    }
View Full Code Here

Examples of org.apache.jetspeed.prefs.PreferencesException

              PreferencesImpl.systemRoot = new PreferencesImpl(null, "", PreferencesImpl.SYSTEM_NODE_TYPE);
              PreferencesImpl.userRoot =  new PreferencesImpl(null, "", PreferencesImpl.USER_NODE_TYPE);           
        }
        catch(Throwable e)
        {
            throw new PreferencesException("Failed to initialize prefs api.  "+e.toString());
        }
    }
View Full Code Here

Examples of ugh.exceptions.PreferencesException

     * get the topstruct element of the digital document depending on anchor property
     */
    DocStruct topElement = dd.getLogicalDocStruct();
    if (this.myPrefs.getDocStrctTypeByName(topElement.getType().getName()).isAnchor()) {
      if (topElement.getAllChildren() == null || topElement.getAllChildren().size() == 0) {
        throw new PreferencesException(myProzess.getTitel()
            + ": the topstruct element is marked as anchor, but does not have any children for physical docstrucs");
      } else {
        topElement = topElement.getAllChildren().get(0);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.