Dipartimento di Informatica, Università degli Studi di Torino, Torino, Italy"/> Università della Valle d’Aosta – Université de la Vallée d’Aoste, Aosta, Italy"/>
Search
2025 Volume 40
Article Contents
RESEARCH ARTICLE   Open Access    

Exception handling in multi-agent oriented programming

More Information
  • Abstract: Exception handling has been successfully proposed in the past years as a simple yet powerful software engineering tool to promote modularity and decoupling, while also preserving robustness. Multi-agent systems (MAS) and organizations (MAOs), in turn, offer powerful abstractions to build distributed systems; current models and methodologies, however, fall short in addressing exception handling in a systematic way, not considering exceptions as part of their design. Thus, the problem is usually approached by ad hoc solutions that hamper code modularization and decoupling. In this work, we outline a vision of how exception handling in MAS can be granted by design. We present an extension of the organizational model and infrastructure adopted in JaCaMo, that explicitly encompasses the notion of exception as a first-class element in the design of an organization. Relying on such a model, we propose an exception handling mechanism that is seamlessly integrated with organizational concepts, such as responsibilities, goals, and norms. In an organization, besides responsibilities for organizational goals, we propose to specify also responsibilities for managing exceptions, that is, for providing feedback about the context in which exceptions occur, and for handling it.
  • 加载中
  • Alderson , D. L. & Doyle , J. C. 2010. Contrasting views of complexity and their implications for network-centric infrastructures. IEEE Transactions on Systems, Man, and Cybernetics – Part A: Systems and Humans 40(4), 839–852.

    Google Scholar

    Baldoni , M., Baroglio , C., Chiappino , G., Micalizio , R. & Tedeschi , S. 2022. Exception handling in SARL as a responsibility distribution. In The 13th International Conference on Ambient Systems, Networks and Technologies (ANT)/The 5th International Conference on Emerging Data and Industry 4.0 (EDI40), Procedia Computer Science 201, 795–800. Elsevier. https://doi.org/10.1016/j.procs.2022.03.112

    Google Scholar

    Baldoni , M., Baroglio , C., Galland , S., Micalizio , R., Outay , F. & Tedeschi , S. 2025. Interaction protocols in an imperative agent-oriented programming language: the case of BSPL and SARL. In Proceedings of 24th International Conference on Autonomous Agents and Multiagent Systems, AAMAS 2025, IFAAMAS, Detroit, Michigan, USA.

    Google Scholar

    Baldoni , M., Baroglio , C., Micalizio , R. & Tedeschi , S. 2021. Reimagining robust distributed systems through accountable MAS. IEEE Internet Computing 25(6), 7–14. https://doi.org/10.1109/MIC.2021.3115450

    Google Scholar

    Baldoni , M., Baroglio , C., Micalizio , R. & Tedeschi , S. 2022. Exception handling as a social concern. IEEE Internet Computing 26(6), 33–40. https://doi.org/10.1109/MIC.2022.3216272

    Google Scholar

    Baldoni , M., Baroglio , C., Micalizio , R. & Tedeschi , S. 2023a. Accountability in multi-agent organizations: from conceptual design to agent programming. Autonomous Agents and Multi-Agent Systems 37(1). https://doi.org/10.1007/s10458-022-09590-6

    Google Scholar

    Baldoni , M., Baroglio , C., Micalizio , R. & Tedeschi , S. 2023b. Towards exception handling in the SARL agent platform. In Advances in Practical Applications of Agents, Multi-Agent Systems, and Cognitive Mimetics. The PAAMS Collection, 403–408. Springer. https://doi.org/10.1007/978-3-031-37616-0_33

    Google Scholar

    Baldoni , M., Christie V, S. H., Singh, M. P. & Chopra, A. K. 2025a. Orpheus: engineering multiagent systems via communicating agents. In Proceedings Thirty-Nineth AAAI Conference on Artificial Intelligence, AAAI 2025, Philadelphia, Pennsylvania, USA.

    Google Scholar

    Baldoni , M., Christie V, S. H., Singh, M. P. & Chopra, A. K. 2025b. Orpheus: programming protocol-based BDI agents. In Proceedings of 24th International Conference on Autonomous Agents and Multiagent Systems, AAMAS 2025, Demonstration Track, IFAAMAS, Detroit, Michigan, USA.

    Google Scholar

    Bauer , B., Müller , J. & Odell , J. 2001. Agent UML: a formalism for specifying multiagent software systems. Software Engineering and Knowledge Engineering 11(3), 207–230.

    Google Scholar

    Boella , G., van der Torre , L. & Verhagen , H. 2008. Introduction to the special issue on normative multiagent systems. Autonomous Agents and Multi-Agent Systems 17(1), 1–10. https://doi.org/10.1007/s10458-008-9047-8

    Google Scholar

    Boissier , O., Bordini , R. H., Hübner , J. F., Ricci , A. & Santi , A. 2013. Multi-agent oriented programming with JaCaMo. Science of Computer Programming 78(6), 747–761.

    Google Scholar

    Boissier , O., Bordini , R. H., Hübner , J. & Ricci , A. 2020. Multi-Agent Oriented Programming: Programming Multi-agent Systems Using JaCaMo. MIT Press.

    Google Scholar

    Bordini , R. H., Hübner , J. F. & Wooldridge , M. 2007. Programming Multi-Agent Systems in AgentSpeak Using Jason. John Wiley & Sons.

    Google Scholar

    Bresciani , P., Perini , A., Giorgini , P., Giunchiglia , F. & Mylopoulos , J. 2004. Tropos: an agent-oriented software development methodology. Autonomous Agents and Multi-Agent Systems 8(3), 203–236. https://doi.org/10.1023/B:AGNT.0000018806.20944.ef

    Google Scholar

    Chopra , A. K., Baldoni , M., Christie V, S. H. & Singh, M. P. 2025. Azorus: commitments over protocols for BDI agents. In Proceedings of 24th International Conference on Autonomous Agents and Multiagent Systems, AAMAS 2025, IFAAMAS, Detroit, Michigan, USA.

    Google Scholar

    Christie V., S., Chopra, A. K. & Singh, M. P. 2021. Bungie: Improving fault tolerance via extensible application-level protocols. Computer 54(5), 44–53. https://doi.org/10.1109/MC.2021.3052147

    Google Scholar

    Christie V, S., Chopra, A. K. & Singh, M. P. 2022. Mandrake: multiagent systems as a basis for programming fault-tolerant decentralized applications. Autonomous Agents and Multi-Agent Systems 36(1), 16. https://doi.org/10.1007/s10458-021-09540-8

    Google Scholar

    Corkill , D. D. & Lesser , V. R. 1983. The use of meta-level control for coordination in distributed problem solving network. In Proceedings of the 8th International Joint Conference on Artificial Intelligence (IJCAI’83), 748–756. William Kaufmann.

    Google Scholar

    Dardenne , A., van Lamsweerde , A. & Fickas , S. 1993. Goal-directed requirements acquisition. Science of Computer Programming 20(1), 3–50.

    Google Scholar

    Dellarocas , C. & Klein , M. 2000. An experimental evaluation of domain-independent fault handling services in open multi-agent systems. In Proceedings Fourth International Conference on MultiAgent Systems, 95–102. IEEE.

    Google Scholar

    Dignum , V. 2009. Handbook of research on multi-agent systems: Semantics and dynamics of organizational models.

    Google Scholar

    Esteva , M., Rodríguez-Aguilar , J.-A., Sierra , C., Garcia , P. & Arcos , J. L. 2001. On the formal specification of electronic institutions. In Agent Mediated Electronic Commerce: The European AgentLink Perspective, 126–147. Springer Berlin Heidelberg.

    Google Scholar

    Fischer , K., Schillo , M. & Siekmann , J. 2003. Holonic multiagent systems: a foundation for the organisation of multiagent systems. In Holonic and Multi-Agent Systems for Manufacturing, Lecture Notes in Computer Science 2744, 71–80. Springer.

    Google Scholar

    Garlan , D., Schmerl , B. & Cheng , S.-W. 2009. Software Architecture-Based Self-Adaptation, 31–55. Springer.

    Google Scholar

    Gerber , C., Siekmann , J. & Vierke , G. 1999. Holonic multi-agent systems, Technical report, Deutsches Forschungszentrum für Künstliche Intelligenz GmbH.

    Google Scholar

    Goodenough , J. B. 1975a. Exception handling design issues. SIGPLAN Notices 10(7), 41–45. https://doi.org/10.1145/987305.987313

    Google Scholar

    Goodenough , J. B. 1975b. Exception handling: issues and a proposed notation. Communications of the ACM 18(12), 683–696. https://doi.org/10.1145/361227.361230

    Google Scholar

    Goodenough , J. B. 1975c. Structured exception handling. In Proceedings of the 2nd ACM SIGACT-SIGPLAN Symposium on Principles of Programming Languages, POPL’75, 204–224. ACM. https://doi.org/10.1145/512976.512997

    Google Scholar

    Goodwin , J. 2015. Learning Akka. Packt Publishing Ltd.

    Google Scholar

    Gupta , M. 2012. Akka Essentials. Packt Publishing Ltd.

    Google Scholar

    Gutierrez-Garcia , J. O., Koning , J. & Ramos-Corchado , F. 2009. An obligation approach for exception handling in interaction protocols. In 2009 IEEE/WIC/ACM International Joint Conference on Web Intelligence and Intelligent Agent Technology, 3, 497–500. IEEE.

    Google Scholar

    Hagen , C. & Alonso , G. 2000. Exception handling in workflow management systems. IEEE Transactions on Software Engineering 26(10), 943–958. https://doi.org/10.1109/32.879818

    Google Scholar

    Hewitt , C., Bishop , P. & Steiger , R. 1973. A universal modular actor formalism for artificial intelligence. In Proceedings of the 3rd International Joint Conference on Artificial Intelligence, IJCAI’73, Morgan Kaufmann Publishers Inc., 235–245.

    Google Scholar

    Hübner , J. F., Boissier , O. & Bordini , R. H. 2009. A normative organisation programming language for organisation management infrastructures. In Proceedings of the 5th International Conference on Coordination, Organizations, Institutions, and Norms in Agent Systems, COIN’09, 114–129. Springer-Verlag.

    Google Scholar

    Hübner , J. F., Boissier , O. & Bordini , R. H. 2010. From organisation specification to normative programming in multi-agent organisations. In Computational Logic in Multi-Agent Systems, 117–134. Springer.

    Google Scholar

    Hübner , J. F., Boissier , O. & Bordini , R. H. 2011. A normative programming language for multi-agent organisations. Annals of Mathematics and Artificial Intelligence 62(1), 27–53.

    Google Scholar

    Hübner , J. F., Boissier , O., Kitio , R. & Ricci , A. 2010. Instrumenting multi-agent organisations with organisational artifacts and agents. Autonomous Agents and Multi-Agent Systems 20(3), 369–400.

    Google Scholar

    Hübner , J. F., Sichman , J. S. & Boissier , O. 2007. Developing organised multiagent systems using the MOISE+ model: programming issues at the system and agent levels. International Journal of Agent-Oriented Software Engineering 1(3/4), 370–395. https://doi.org/10.1504/IJAOSE.2007.016266

    Google Scholar

    ISO/IEC/IEEE 2010. ISO/IEC/IEEE International Standard - Systems and software engineering – Vocabulary. ISO/IEC/IEEE 24765:2010(E), 1–418.

    Google Scholar

    Jain , A. K., Aparico IV, M. & Singh, M. P. 1999. Agents for process coherence in virtual enterprises. Communications of the ACM 42(3), 62–69.

    Google Scholar

    Kalia , A. K. & Singh , M. P. 2015. Muon: designing multiagent communication protocols from interaction scenarios. Autonomous Agents and Multi-Agent Systems 29(4), 621–657.

    Google Scholar

    Klein , M. & Dellarocas , C. 1999. Exception handling in agent systems. In Proceedings of the Third Annual Conference on Autonomous Agents, AGENTS’99, 62–68, ACM.

    Google Scholar

    Klein , M. & Dellarocas , C. 2000. A knowledge-based approach to handling exceptions in workflow systems. Computer Supported Cooperative Work (CSCW) 9(3-4), 399–412.

    Google Scholar

    Mallya , A. U. & Singh , M. P. 2005. Modeling exceptions via commitment protocols. In Proceedings of the Fourth International Joint Conference on Autonomous Agents and Multiagent Systems, AAMAS’05, 122–129. ACM.

    Google Scholar

    Meyer , B. 1988. Object-Oriented Software Construction, 2, Prentice Hall.

    Google Scholar

    Miller , R. & Tripathi , A. 2004. The guardian model and primitives for exception handling in distributed systems. IEEE Transactions on Software Engineering 30(12), 1008–1022.

    Google Scholar

    Petrosino , G., Monica , S. & Bergenti , F. 2022. Robust software agents with the jadescript programming language. In Proceedings of the 23rd Workshop “From Objects to Agents”, Genova, Italy, September 1–3, 2022, CEUR Workshop Proceedings 3261, 194–208. https://CEUR-WS.org. https://ceur-ws.org/Vol-3261/paper15.pdf

    Google Scholar

    Petrosino , G., Monica , S. & Bergenti , F. 2023. Effective handling of exceptional situations in robust software agents. Intelligenza Artificiale 17, 37–49. https://doi.org/10.3233/IA-230003

    Google Scholar

    Platon , E. 2007. Modeling Exception Management in Multi-agent Systems. PhD thesis, Université Pierre et Marie Curie, France.

    Google Scholar

    Platon , E., Sabouret , N. & Honiden , S. 2007a. Challenges for exception handling in multi-agent systems. In Software Engineering for Multi-Agent Systems V, 41–56. Springer Berlin Heidelberg.

    Google Scholar

    Platon , E., Sabouret , N. & Honiden , S. 2007b. A definition of exceptions in agent-oriented computing. In Engineering Societies in the Agents World VII, 161–174. Springer Berlin Heidelberg.

    Google Scholar

    Platon , E., Sabouret , N. & Honiden , S. 2008. An architecture for exception management in multiagent systems. International Journal of Agent-Oriented Software Engineering 2(3), 267–289.

    Google Scholar

    Ricci , A., Piunti , M., Viroli , M. & Omicini , A. 2009. Environment Programming in CArtAgO, 259–288. Springer US.

    Google Scholar

    Rodriguez , S., Gaud , N. & Galland , S. 2014. Sarl: a general-purpose agent-oriented programming language. In 2014 IEEE/WIC/ACM International Joint Conferences on Web Intelligence (WI) and Intelligent Agent Technologies (IAT), 3, 103–110.

    Google Scholar

    SARL.io 2023. Management of the failures and validation errors, sarl general-purpose agent-oriented programming language (“specification“), http://www.sarl.io/docs/official/reference/Failures.html. Accessed: 2024-09-16.

    Google Scholar

    Schillo , M. & Fischer , K. 2002. Holonic multiagent systems. Manufacturing Systems 8(13), 538–550.

    Google Scholar

    Singh , M. P. 2000. A social semantics for agent communication languages. In Issues in Agent Communication, 31–45. Springer.

    Google Scholar

    Wooldridge , M. 2009. An Introduction to Multiagent Systems. John Wiley & Sons.

    Google Scholar

  • Cite this article

    Matteo Baldoni, Cristina Baroglio, Roberto Micalizio, Stefano Tedeschi. 2025. Exception handling in multi-agent oriented programming. The Knowledge Engineering Review 40(1), doi: 10.1017/S0269888925000050
    Matteo Baldoni, Cristina Baroglio, Roberto Micalizio, Stefano Tedeschi. 2025. Exception handling in multi-agent oriented programming. The Knowledge Engineering Review 40(1), doi: 10.1017/S0269888925000050

Article Metrics

Article views(162) PDF downloads(111)

RESEARCH ARTICLE   Open Access    

Exception handling in multi-agent oriented programming

Abstract: Abstract: Exception handling has been successfully proposed in the past years as a simple yet powerful software engineering tool to promote modularity and decoupling, while also preserving robustness. Multi-agent systems (MAS) and organizations (MAOs), in turn, offer powerful abstractions to build distributed systems; current models and methodologies, however, fall short in addressing exception handling in a systematic way, not considering exceptions as part of their design. Thus, the problem is usually approached by ad hoc solutions that hamper code modularization and decoupling. In this work, we outline a vision of how exception handling in MAS can be granted by design. We present an extension of the organizational model and infrastructure adopted in JaCaMo, that explicitly encompasses the notion of exception as a first-class element in the design of an organization. Relying on such a model, we propose an exception handling mechanism that is seamlessly integrated with organizational concepts, such as responsibilities, goals, and norms. In an organization, besides responsibilities for organizational goals, we propose to specify also responsibilities for managing exceptions, that is, for providing feedback about the context in which exceptions occur, and for handling it.

    • The work of Cristina Baroglio and Stefano Tedeschi is part of the project NODES which has received funding from the MUR—M4C2 1.5 of PNRR funded by the European Union—NextGenerationEU (Grant agreement no. ECS00000036).

    • The full code of JaCaMo extended with exception handling, together with some examples, is available in the official Moise repository, in a dedicated branch: https://github.com/moise-lang/moise. We are currently working on integrating the extension into the official JaCaMo release.

    • Note that Moise has the following goal types: achievement, performance, maintenance. Please, refer to Moise official documentation for further details.

    • This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
References (59)
  • About this article
    Cite this article
    Matteo Baldoni, Cristina Baroglio, Roberto Micalizio, Stefano Tedeschi. 2025. Exception handling in multi-agent oriented programming. The Knowledge Engineering Review 40(1), doi: 10.1017/S0269888925000050
    Matteo Baldoni, Cristina Baroglio, Roberto Micalizio, Stefano Tedeschi. 2025. Exception handling in multi-agent oriented programming. The Knowledge Engineering Review 40(1), doi: 10.1017/S0269888925000050
  • Catalog

      /

      DownLoad:  Full-Size Img  PowerPoint
      Return
      Return