Registry Mirror
Skip to content

Do Handling Exception #19

Open
Open

Description

@TomazMartins

Do the handling Exception on whole Akan.

Activity

  1. self-assigned this
    on Jun 8, 2015
  2. TomazMartins commented on Jun 10, 2015

    @TomazMartins
    MemberAuthor

    English: Guys,
    A problem arose. The launch of exception that breaking the code on the request is not originated because of a null list. The problem is that there are quotas that do not have a valid value of Month.

    In class StatisticDao there is a call to the method Statistic#getMonth(). It at some point is returning null.

    The momentary solution is to use a default value of WITHOUT_MONTH to constant existing only in these cases.

    However, we must improve it, because that way we lose data and, in consequence, the consistency of analysis.

    Portuguese: Caras,
    Surgiu um problema. O lançamento da exceção que quebra na requisição não é originado por causa de uma lista nula. O problema é que há cotas que não tem um valor válido de Month.

    Na classe StatisticDao há uma chamada para o método Statistic#getMonth(). Ele, em algum momento está retornando null.

    A solução momentânea é utilizar um valor default de WITHOUT_MONTH, para constante já existente, apenas para esses casos.

    No entanto, devemos melhorar isso, pois dessa forma perdemos dados e, por consequência, a consistência das análises.

  3. ArthurJahn commented on Jun 11, 2015

    @ArthurJahn
    Contributor

    That's weird... I've created a handler for that in JSONHelper method that sets the months as 0 (zero) when it doesn't exists... I will investigate this issue.

  4. ArthurJahn commented on Jun 11, 2015

    @ArthurJahn
    Contributor

    Sorry that unassigned you, but i was already working on this issue because of the graphs. Anyway, It's closed now, commit 7172c44

  5. TomazMartins commented on Jun 11, 2015

    @TomazMartins
    MemberAuthor

    English: I opened the issue again because it specifies what must be done all the treatments exceptions around the Akan. This was not done yet.

    Portuguese: Eu reabri a issue, pois ela especifica que deve ser feito todos os tratamentos de exceções no Akan inteiro. Isso não foi feito ainda.

  6. ArthurJahn commented on Jun 11, 2015

    @ArthurJahn
    Contributor

    Ok!

  7. TomazMartins commented on Jun 11, 2015

    @TomazMartins
    MemberAuthor

    English: but thank you to solve the question about the Month with value null!
    Portuguese: mas obrigado por ter resolvido a questão do Monthcom valor null!

  8. TomazMartins commented on Jun 11, 2015

    @TomazMartins
    MemberAuthor

    @ArthurJahn,
    There are unit tests was broken: testInsertAllValidCongressman() and testGetQuotaOfValidCongressman(). The last time I ran then it was OK. Do you run the tests in your machine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions