JAXBException toString - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for JAXBException toString method.

This code example shows how to use the following methods:toString
This code example shows how to use the following methods:toString
        if (node == null) return node;
        Unmarshaller um = null;
        try { 
            um = JAXB_CONTEXT.createUnmarshaller();
        } catch (JAXBException e) {
            logger.error(e.toString(),e);
            throw CXFUtility.getFault(e);
        } 
        Object result = null; 
        try { 
            result = um.unmarshal(node);
        } catch (Exception e) {
            logger.error("Problem obtaining params", e);
            throw CXFUtility.getFault(e);
        } 
        return result; 
    } 
 
    protected static void marshall(Object unmarshalled, SOAPElement parent) {
        if (unmarshalled == null) return; 
4
CodeRank
This code example shows how to use the following methods:toString
			final Marshaller marshaller = context.createMarshaller();
			marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
			final FileWriter writer = new FileWriter(defFileName);
			marshaller.marshal(def, writer);
		} catch (final JAXBException exception) {
			throw new GenerationException(exception.toString());
		} catch (final IOException exception) {
			throw new GenerationException(exception.toString());
		} 
 
		Config.logger.info("Wrote resource definition " + defFileName);
	} 
} 
4
CodeRank
This code example shows how to use the following methods:toString
			Marshaller marshaller = jc.createMarshaller();
			marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,
					Boolean.TRUE);
			marshaller.marshal(siri, writer);
		} catch (JAXBException e) {
			return e.toString();
		} 
		return writer.toString();
	} 
 
  public static StatusResponseStructure createStatusResponseStructure(boolean status,
      String errorMessage) {
    StatusResponseStructure statusResponseStructure = new StatusResponseStructure();
    statusResponseStructure.setStatus(status);
    if (!status) {
      ServiceDeliveryErrorConditionStructure condition = new ServiceDeliveryErrorConditionStructure();
      statusResponseStructure.setErrorCondition(condition);
      ErrorDescriptionStructure description = new ErrorDescriptionStructure();
      condition.setDescription(description);
      description.setValue(errorMessage);
4
CodeRank
This code example shows how to use the following methods:toString
    public Object decode(Response response, Type type) throws IOException, FeignException {
        try { 
            Unmarshaller unmarshaller = jaxbContextFactory.createUnmarshaller((Class) type);
            return unmarshaller.unmarshal(response.body().asInputStream());
        } catch (JAXBException e) {
            throw new DecodeException(e.toString(), e);
        } finally { 
            if(response.body() != null) { 
                response.body().close(); 
            } 
        } 
    } 
} 
4
CodeRank
toString Method Overview
Returns a short description of this JAXBException.
See Code Examples for other Java 8 JAXBException Methods: