1 17 18 package org.sape.carbon.core.component; 19 20 import org.sape.carbon.core.exception.BaseRuntimeException; 21 import org.sape.carbon.core.util.classify.SeverityEnum; 22 23 35 public class ComponentNotFoundException extends BaseRuntimeException { 36 44 public ComponentNotFoundException( 45 Class sourceClass, 46 String logicalComponentName, 47 Throwable cause) { 48 49 super(sourceClass, logicalComponentName + " was not found", cause); 50 } 51 52 53 60 public ComponentNotFoundException(Class sourceClass, 61 String logicalComponentName) { 62 63 super(sourceClass, logicalComponentName + " was not found"); 64 } 65 66 67 73 public SeverityEnum getSeverity() { 74 return SeverityEnum.ERROR; 75 } 76 77 } 78 | Popular Tags |