ExcecaoAtribuicaoInvalidaValor.java 917 B

12345678910111213141516171819202122232425
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package exception;
  7. /**
  8. *
  9. * @author Eugenio
  10. */
  11. public class ExcecaoAtribuicaoInvalidaValor extends Exception {
  12. // public ExcecaoAtribuicaoInvalida(String nome, String escopo, int linha) {
  13. // super("Variavel [" + nome + "] não declada no escopo [" + escopo + "].Linha[" + linha + "]");
  14. // }
  15. //
  16. // public ExcecaoAtribuicaoInvalida(String nome) {
  17. // super("Variavel [" + nome + "] não declada");
  18. // }
  19. public ExcecaoAtribuicaoInvalidaValor(String tipo, String _tipo, String valor, int line, String escopo) {
  20. super("Valor atribuido é invalido. Aguardando tipo[" + tipo
  21. + "], valor atribuido [" + valor + "]:[" + _tipo + "].Linha[" + line + "]Escopo[" + escopo + "]");
  22. }
  23. }