On Tue, Nov 16, 2010 at 15:58, orefalo <ore...@yahoo.com> wrote:
> Second, I see that you have a hierarchy of RuntimeExceptions across
> the framework, My understanding is that you picked this type to ease
> the use of the framework, right ?
> If this is correct, the issue then comes from the javadoc. It should
> be referenced somewhere that a given method may raise a certain type
> of exception.
Basically we don't think checked exceptions are a good idea, for the
same reason Scala doesn't have checked exceptions and wrap them into
RuntimeExceptions. You have the case where you have code that you
*know* never throws but the compiler wants you to handle the exception
(like when you pass utf-8 but you need to handle the
UnsupportedEncodingException). There is also the case where developers
don't know what to do with the exception and just leave a try with an
empty catch. The exception is lost and debugging is hard.
So we prefer RuntimeException, and the developer only catches it if
needed. When it happens, it bubbles up to the controller.
* In dev mode: the exception is visible in the browser
* In prod mode: a 500 error is thrown, and the exception is logged
But yes, there are cases it could be good to document in the javadoc.
--
Erwan Loisant
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
Don't know much about Ivy, but Maven seem to have more momentum at
this point
> what do you need exactly as you don't really care if play is build withI don't care if Play is built with maven or not.
> maven or not?
However, along with maven typically comes continuous integrations. So
having play built with maven means that we will get access to the
latest daily snapshots easily. as long as I can get automatic
deployment from a maven repository, I am happy.
> - Would you like your Play projects to be a Maven project ?Yes, a must have. I share my play projects across cpu, it's a pain to
rework the classpath every time.
Also, It would make it easy to test with other versions of the
libraries > say hibernate 3.6
> - Would you like to be able to create a play project from a maven archetype?I am good with pay new but it would make sense to build a full maven
integration..
a must have is you read my previous answers.
> - Would you like to get play core libs from a repo?
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
Sorry for the late response.
I've nothing against H2 but HSQL works perfectly and I don't think
there will be any added value to change it.
Anyway if you wan't to use H2 in production you already can.
About Maven, I understand the need to have solution to integrate a
Play application into an existing Maven software factory, but about
building Play itself with Maven I don't see any value. The whole build
run in 2seconds on my computer and I'm totally happy with that. I
don't want to switch to a more complicated setup. Especially since we
have some python integration to do and it will be probably a pain to
do that with Maven.
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>
--
Guillaume Bort, http://guillaume.bort.fr
For anything work-related, use g...@zenexity.fr; for everything else,
write guillau...@gmail.com
Hi,
Sorry for the late response.
I've nothing against H2 but HSQL works perfectly and I don't think
there will be any added value to change it.
Anyway if you wan't to use H2 in production you already can.
About Maven, I understand the need to have solution to integrate a
Play application into an existing Maven software factory, but about
building Play itself with Maven I don't see any value. The whole build
run in 2seconds on my computer and I'm totally happy with that. I
don't want to switch to a more complicated setup. Especially since we
have some python integration to do and it will be probably a pain to
do that with Maven.
About Maven I don't have enough experience. 'play mavenify' would be
great if it's totally optional.