DERBY-6254: Reduce number of factory methods in StandardException

Generalize the factory methods by using varargs.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1491366 13f79535-47bb-0310-9956-ffa450edef68