bmpnError throwing error

I created a new class
public class BpmnErrorCommon extends BpmnError {
public BpmnErrorCommon(String errorCode) {
super(errorCode);

and trying to call from as written below

System.out.println(“Now the output is redirected!”);
throw new BpmnErrorCommon(“Failure”);

Maven Dependency

			<groupId>org.camunda.bpm</groupId>
			<artifactId>camunda-bom</artifactId>
			<version>${camunda.version}</version>
			<scope>import</scope>
			<type>pom</type>
		</dependency>
		<dependency>
			<groupId>org.camunda.bpm.dmn</groupId>
			<artifactId>camunda-engine-dmn-bom</artifactId>
			<version>${camunda.version}</version>
			<type>pom</type>
			<scope>import</scope>
		</dependency>

<camunda.version>7.10.1-ee</camunda.version>

But i am getting below error not sure what is that i am missing

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [se.bae.integration.bpm.baeWorker.BaeWorkerApplication]; nested exception is java.io.FileNotFoundException: class path resource [org/camunda/bpm/engine/delegate/BpmnError.class] cannot be opened because it does not exist

Any help

@brajendra.kumar make sure the dependency camunda-engine-7.10.1-ee.jar is in classpath.

And related to classpath issues, the below posts might be useful: