RespuestasExportar.java
871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.focasoftware.deboinventario;
/**
* Clase accesoria para reconocer las respuestas al exportar.
* Creada en especial para manejar de forma refinada las excepciones y errores al
* exportar en el manejo de Bases de datos y archivos.
* @author GuillermoR
*
*/
public class RespuestasExportar {
public static final int CODIGO_OK=0;
public static final int CODIGO_WARNING=1;
public static final int CODIGO_ERROR=2;
private int codigoError;
private String mensaje;
public RespuestasExportar(int codigo,String msj) {
this.codigoError=codigo;
this.mensaje=msj;
}
public int getCodigoError() {
return codigoError;
}
public void setCodigoError(int codigoError) {
this.codigoError = codigoError;
}
public String getMensaje() {
return mensaje;
}
public void setMensaje(String mensaje) {
this.mensaje = mensaje;
}
}