Package ca.uhn.fhir.rest.server.exceptions

Examples of ca.uhn.fhir.rest.server.exceptions.InternalErrorException


    IQueryParameterAnd dt;
    try {
      dt = myType.newInstance();
      dt.setValuesAsQueryTokens(theString);
    } catch (InstantiationException e) {
      throw new InternalErrorException(e);
    } catch (IllegalAccessException e) {
      throw new InternalErrorException(e);
    } catch (SecurityException e) {
      throw new InternalErrorException(e);
    }
    return dt;
  }
View Full Code Here


        throw new InvalidRequestException("Multiple values detected");
      }
     
      dt.setValuesAsQueryTokens(theString.get(0));
    } catch (InstantiationException e) {
      throw new InternalErrorException(e);
    } catch (IllegalAccessException e) {
      throw new InternalErrorException(e);
    } catch (SecurityException e) {
      throw new InternalErrorException(e);
    }
    return dt;
  }
View Full Code Here

      InternalErrorException {
    IResource conf;
    try {
      conf = (Conformance) getMethod().invoke(theResourceProvider);
    } catch (Exception e) {
      throw new InternalErrorException("Failed to call access method", e);
    }

    return Collections.singletonList(conf);
  }
View Full Code Here

   
    Object response;
    try {
      response = getMethod().invoke(theResourceProvider, params);
    } catch (Exception e) {
      throw new InternalErrorException("Failed to call access method",e);
    }
   
    return toResourceList(response);
  }
View Full Code Here

   
    Object response;
    try {
      response = getMethod().invoke(theResourceProvider, args);
    } catch (IllegalAccessException e) {
      throw new InternalErrorException(e);
    } catch (IllegalArgumentException e) {
      throw new InternalErrorException(e);
    } catch (InvocationTargetException e) {
      throw new InternalErrorException(e);
    }
   
    return toResourceList(response);
  }
View Full Code Here

    IQueryParameterAnd dt;
    try {
      dt = myType.newInstance();
      dt.setValuesAsQueryTokens(theString);
    } catch (InstantiationException e) {
      throw new InternalErrorException(e);
    } catch (IllegalAccessException e) {
      throw new InternalErrorException(e);
    } catch (SecurityException e) {
      throw new InternalErrorException(e);
    }
    return dt;
  }
View Full Code Here

        throw new InvalidRequestException("Multiple values detected");
      }
     
      dt.setValuesAsQueryTokens(theString.get(0));
    } catch (InstantiationException e) {
      throw new InternalErrorException(e);
    } catch (IllegalAccessException e) {
      throw new InternalErrorException(e);
    } catch (SecurityException e) {
      throw new InternalErrorException(e);
    }
    return dt;
  }
View Full Code Here

    MethodOutcome response;
    try {
      response = (MethodOutcome) this.getMethod().invoke(theRequest.getResourceProvider(), params);
    } catch (IllegalAccessException e) {
      throw new InternalErrorException(e);
    } catch (IllegalArgumentException e) {
      throw new InternalErrorException(e);
    } catch (InvocationTargetException e) {
      throw new InternalErrorException(e);
    }

    if (response == null) {
      if (myReturnVoid == false) {
        throw new ConfigurationException("Method " + getMethod().getName() + " in type " + getMethod().getDeclaringClass().getCanonicalName() + " returned null");
View Full Code Here

    MethodOutcome response;
    try {
      response = (MethodOutcome) this.getMethod().invoke(theRequest.getResourceProvider(), params);
    } catch (IllegalAccessException e) {
      throw new InternalErrorException(e);
    } catch (IllegalArgumentException e) {
      throw new InternalErrorException(e);
    } catch (InvocationTargetException e) {
      throw new InternalErrorException(e);
    }

    if (response == null) {
      if (isReturnVoid() == false) {
        throw new ConfigurationException("Method " + getMethod().getName() + " in type " + getMethod().getDeclaringClass().getCanonicalName() + " returned null");
View Full Code Here

        throw new InvalidRequestException("Multiple values detected");
      }
     
      dt.setValueAsQueryToken(theString.get(0).get(0));
    } catch (InstantiationException e) {
      throw new InternalErrorException(e);
    } catch (IllegalAccessException e) {
      throw new InternalErrorException(e);
    } catch (SecurityException e) {
      throw new InternalErrorException(e);
    }
    return dt;
  }
View Full Code Here

TOP

Related Classes of ca.uhn.fhir.rest.server.exceptions.InternalErrorException

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.