Branch: refs/heads/integration/master
  Home:   https://github.com/zanata/zanata-server
  Commit: 62148e1274ea6b61ade734228478ff78f41ea4f3
      
https://github.com/zanata/zanata-server/commit/62148e1274ea6b61ade734228478ff78f41ea4f3
  Author: arm <armagan.er...@gmail.com>
  Date:   2016-06-02 (Thu, 02 Jun 2016)

  Changed paths:
    M zanata-war/src/main/java/org/zanata/action/MergeTransAction.java
    M zanata-war/src/main/java/org/zanata/action/ProjectHome.java
    M zanata-war/src/main/java/org/zanata/action/VersionHome.java
    A 
zanata-war/src/main/java/org/zanata/exception/ProjectNotFoundException.java
    A 
zanata-war/src/main/java/org/zanata/exception/VersionNotFoundException.java
    A 
zanata-war/src/main/java/org/zanata/exception/handler/ProjectNotFoundExceptionHandler.java
    A 
zanata-war/src/main/java/org/zanata/exception/handler/VersionNotFoundExceptionHandler.java
    M zanata-war/src/main/java/org/zanata/util/UrlUtil.java
    M zanata-war/src/main/resources/messages.properties
    A zanata-war/src/main/webapp/error/missing_entity.xhtml

  Log Message:
  -----------
  fix(ZNTA-1073) : create custom exceptions + handlers (#1169)

* fix(ZNTA-1073):Fix NullPointerEx on iteration view

Throw EntityNotFoundException instead of NullPointerException when
attempt to access non-existing project through writing invalid project
slug on the iteration page

* fix(ZNTA-1073):create custom exceptions + handlers

Create ProjectNotFoundEx and VersionNotFoundEx and throw them when
trying to write invalid project or iteration slug on project view or
iteration view pages. Handle these exceptions and return warn page with
the proper warning message.

* fix(ZNTA-1073):change the structure of the ex.s

Instead of passing parameters on the warning page for the error messages,
creating constructors with slug arguments and passing project slug and
version slug parameters when throwing the exceptions. Also, rename warn
page to missing_entity.

* fix(ZNTA-1073) : Add header comment

* fix(ZNTA-1073) : remove unnecessary comment

* fix(ZNTA-1073): change the exception message


_______________________________________________
zanata-commits mailing list
zanata-commits@redhat.com
https://www.redhat.com/mailman/listinfo/zanata-commits

Reply via email to