Java Ice and IOException

53 views Asked by At

I'm trying to make an Java Ice code and i have some issues with exceptions in interfaces (with IOException). I write in the slice ".ice"

module Demo {
    
    
    
        struct Pedido{
        string nombre;
        string comanda;
        string direccion;
        string tarjeta;
    };
    
    interface Fichero {
        string getNombre(Pedido p);
        string getComanda(Pedido p);
        string getDireccion(Pedido p);
        string getTarjeta (Pedido p);
        string descifrado(string tarjeta);
        void escribirFichero(Pedido p) ;
        
    };
    
    

    interface Pedidos {
        float getPrecioTotal(Pedido p);
        float getPrecio(string item);
        void devolverPrecio(Pedido p, out float res);
    };
};

In the interface fichero, I have problems of exceptions IOException.

What can i do?

0

There are 0 answers