All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.stickycode.resource.codec.ResourceEncodingFailureException Maven / Gradle / Ivy

package net.stickycode.resource.codec;

import javax.xml.bind.JAXBException;

import net.stickycode.coercion.CoercionTarget;
import net.stickycode.exception.TransientException;
import net.stickycode.resource.ResourceCodec;

@SuppressWarnings("serial")
public class ResourceEncodingFailureException
    extends TransientException {

  public ResourceEncodingFailureException(JAXBException e, Class type, ResourceCodec codec) {
    super(e, "Failed to encode {} using {}", type, codec);
  }

  public ResourceEncodingFailureException(JAXBException e, CoercionTarget sourceType, ResourceCodec codec) {
    super(e, "Failed to encode {} using {}", sourceType, codec);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy