1 17 package org.alfresco.service.cmr.repository; 18 19 import java.text.MessageFormat ; 20 21 import org.alfresco.error.AlfrescoRuntimeException; 22 23 29 public class NoTransformerException extends AlfrescoRuntimeException 30 { 31 private static final long serialVersionUID = 3689067335554183222L; 32 33 private static final MessageFormat MSG = 34 new MessageFormat ("No transformation exists between mimetypes {0} and {1}"); 35 36 private String sourceMimetype; 37 private String targetMimetype; 38 39 43 public NoTransformerException(String sourceMimetype, String targetMimetype) 44 { 45 super(MSG.format(new Object [] {sourceMimetype, targetMimetype})); 46 this.sourceMimetype = sourceMimetype; 47 this.targetMimetype = targetMimetype; 48 } 49 50 public String getSourceMimetype() 51 { 52 return sourceMimetype; 53 } 54 55 public String getTargetMimetype() 56 { 57 return targetMimetype; 58 } 59 } 60 | Popular Tags |