2018-07-03 13:01:07 +00:00
|
|
|
/*
|
|
|
|
* \brief Ada exception declarations for C++
|
|
|
|
* \author Johannes Kliemann
|
|
|
|
* \date 2018-06-25
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 Componolit GmbH
|
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
|
|
|
*/
|
2018-06-25 08:45:36 +00:00
|
|
|
|
|
|
|
#include <base/exception.h>
|
|
|
|
|
|
|
|
namespace Ada {
|
2018-07-03 13:01:07 +00:00
|
|
|
namespace Exception {
|
|
|
|
class Program_Error : Genode::Exception {};
|
|
|
|
class Constraint_Error : Genode::Exception {};
|
|
|
|
class Storage_Error : Genode::Exception {};
|
2018-06-25 08:45:36 +00:00
|
|
|
|
2018-07-03 13:01:07 +00:00
|
|
|
class Length_Check : Constraint_Error {};
|
|
|
|
class Overflow_Check : Constraint_Error {};
|
|
|
|
class Invalid_Data : Constraint_Error {};
|
|
|
|
class Range_Check : Constraint_Error {};
|
|
|
|
class Index_Check : Constraint_Error {};
|
|
|
|
class Discriminant_Check : Constraint_Error {};
|
|
|
|
class Divide_By_Zero : Constraint_Error {};
|
|
|
|
}
|
|
|
|
}
|