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

jadex.micro.testcases.PojoBodyExceptionAgent Maven / Gradle / Ivy

Go to download

The Jadex micro applications package contains several example applications, benchmarks and testcases using micro agents.

There is a newer version: 4.0.267
Show newest version
package jadex.micro.testcases;

import jadex.micro.annotation.Agent;
import jadex.micro.annotation.AgentBody;

/**
 *  Test what happens if an exception is thrown in body.
 */
@Agent
public class PojoBodyExceptionAgent
{
	/**
	 *  Create a new agent.
	 */
	public PojoBodyExceptionAgent()
	{
//		throw new RuntimeException("Exception in constructor");
	}
	
	/**
	 *  The agent body.
	 */
	@AgentBody
	public void executeBody()
	{
//		System.out.println("execute ExceptionTest ...");
		throw new RuntimeException("Exception in agent body");
//		System.out.println("... finished");
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy