Examples of InvalidRequestException


Examples of com.stripe.exception.InvalidRequestException

  protected static String instanceURL(Class<?> clazz, String id) throws InvalidRequestException {
    try {
      return String.format("%s/%s", classURL(clazz), urlEncode(id));
    } catch (UnsupportedEncodingException e) {
      throw new InvalidRequestException("Unable to encode parameters to "
          + CHARSET
          + ". Please contact support@stripe.com for assistance.",
          null, e);
    }
  }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.dispatch.InvalidRequestException

    protected RequestValidationResult() {
        this(ValidationResult.VALID, Optional.<Exception>absent());
    }

    protected RequestValidationResult(String exceptionMessage) {
        this(new InvalidRequestException(exceptionMessage));
    }
View Full Code Here

Examples of javax.xml.registry.InvalidRequestException

     
      JAXBContext context = JAXBContextUtil.getContext(JAXBContextUtil.UDDI_V2_VERSION);
            unmarshaller = context.createUnmarshaller();
            marshaller = context.createMarshaller();
    } catch (URISyntaxException muex) {
      throw new InvalidRequestException(muex.getMessage(),muex);
    } catch(JAXBException e) {
           throw new RuntimeException(e);
        }
  }
View Full Code Here

Examples of org.apache.airavata.model.error.InvalidRequestException

        } catch (AiravataSystemException e) {
            logger.error("Error occured while creating the experiment...", e.getMessage());
            throw new AiravataSystemException(e);
        } catch (InvalidRequestException e) {
            logger.error("Error occured while creating the experiment...", e.getMessage());
            throw new InvalidRequestException(e);
        } catch (AiravataClientException e) {
            logger.error("Error occured while creating the experiment...", e.getMessage());
            throw new AiravataClientException(e);
        }catch (TException e) {
            logger.error("Error occured while creating the experiment...", e.getMessage());
View Full Code Here

Examples of org.apache.cassandra.exceptions.InvalidRequestException

            return variables.get(bindIndex);
        }
        catch (MarshalException e)
        {
            throw new InvalidRequestException(e.getMessage());
        }
    }
View Full Code Here

Examples of org.apache.cassandra.service.InvalidRequestException

                    {
                        rm.add(new QueryPath(cfName, super_column.name, column.name), column.value, column.timestamp);
                    }
                    catch (MarshalException e)
                    {
                        throw new InvalidRequestException(e.getMessage());
                    }
                }
            }
        }
        return rm;
View Full Code Here

Examples of org.apache.cassandra.thrift.InvalidRequestException

    }

    private void validateLogin() throws InvalidRequestException
    {
        if (user == null)
            throw new InvalidRequestException("You have not logged in");
    }
View Full Code Here

Examples of org.apache.cassandra.thrift.InvalidRequestException

    }
   
    private void validateKeyspace() throws InvalidRequestException
    {
        if (keyspace == null)
            throw new InvalidRequestException("You have not set a keyspace for this session");
    }
View Full Code Here

Examples of org.apache.cassandra.thrift.InvalidRequestException

    private static void hasAccess(AuthenticatedUser user, Set<Permission> perms, Permission perm, List<Object> resource) throws InvalidRequestException
    {
        if (perms.contains(perm))
            return;
        throw new InvalidRequestException(String.format("%s does not have permission %s for %s",
                                                        user,
                                                        perm,
                                                        Resources.toString(resource)));
    }
View Full Code Here

Examples of org.apache.cassandra.thrift.InvalidRequestException

     */
    public static List<Row> readProtocol(List<ReadCommand> commands, ConsistencyLevel consistency_level)
            throws IOException, UnavailableException, TimeoutException, InvalidRequestException
    {
        if (StorageService.instance.isBootstrapMode())
            throw new InvalidRequestException("This node cannot accept reads until it has bootstrapped");
        long startTime = System.nanoTime();

        List<Row> rows;
        if (consistency_level == ConsistencyLevel.ONE)
        {
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.