Package org.structr.common.error

Examples of org.structr.common.error.ErrorBuffer


   
      // start new transaction
      tx = new TransactionReference(graphDb.beginTx());
     
      queues.set(new ModificationQueue());
      buffers.set(new ErrorBuffer());
      transactions.set(tx);
      currentCommand.set(this);
    }
   
    // increase depth
View Full Code Here


 
    final TransactionReference tx = transactions.get();
    if (tx != null && tx.isToplevel()) {

      final ModificationQueue modificationQueue = queues.get();
      final ErrorBuffer errorBuffer             = buffers.get();
     
      // 1. do inner callbacks (may cause transaction to fail)
      if (doValidation && !modificationQueue.doInnerCallbacks(securityContext, errorBuffer)) {

        // create error
View Full Code Here

* @author Christian Morgner
*/
public class UnauthorizedException extends FrameworkException {

  public UnauthorizedException() {
    super(HttpServletResponse.SC_UNAUTHORIZED, new ErrorBuffer());
  }
View Full Code Here

      // now check again the deletion cascade for violated constraints
      // Check all end nodes of outgoing relationships which are connected if they are
      // still valid after node deletion
      for (NodeInterface nodeToCheck : nodesToCheckAfterDeletion) {

        ErrorBuffer errorBuffer = new ErrorBuffer();

        if (!deletedNodes.contains(nodeToCheck) && !nodeToCheck.isValid(errorBuffer)) {

          // remove end node from index
          nodeToCheck.removeFromIndex();
View Full Code Here

TOP

Related Classes of org.structr.common.error.ErrorBuffer

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.