Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1567

Explain validation errors in more depth

    Details

      Description

      In many cases, it is not sufficient to provide a user just with stack trace when something goes wrong, for example, from this one:

      java.lang.IllegalStateException: Directory to check against readability is null object or empty string.
        at org.arquillian.droidium.container.configuration.Validate.notNullOrEmpty(Validate.java:98)
        at org.arquillian.droidium.container.configuration.Validate.isReadableDirectory(Validate.java:147)
        at org.arquillian.droidium.container.configuration.AndroidSDK.<init>(AndroidSDK.java:189)
        at org.arquillian.droidium.container.AndroidDeployableContainer.setup(AndroidDeployableContainer.java:153)
      

      It basically says that user does not have specified JAVA_HOME but he can not know that without looking into sources which is totally not desired.

      Review all crucial configuration properties and its setters / getters and be sure that when it fails user knows whats going on.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                smikloso Stefan Miklosovic
                Reporter:
                smikloso Stefan Miklosovic
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: