# ij.exceptionTrace property

The `ij.exceptionTrace` property specifies whether `ij` should display a full exception stack trace when exceptions occur.

The default setting is `false`.

## Syntax

    ij.exceptionTrace={ false | true }

## Example

In the following example, `ij` is started with the `ij.exceptionTrace` property set to `true`.

    java -Dij.exceptionTrace=true org.apache.derby.tools.ij
    ij version 10.17
    ij> connect 'jdbc:derby:wombat';
    ERROR XJ004: Database 'wombat' not found.
    SQL Exception: Database 'wombat' not found.
        at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:107)
        at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:133)
        at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:228)
        at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:223)
        at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(EmbedConnection.java:3198)
        at org.apache.derby.impl.jdbc.EmbedConnection.handleDBNotFound(EmbedConnection.java:766)
        at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:436)
        at org.apache.derby.jdbc.InternalDriver.getNewEmbedConnection(InternalDriver.java:647)
        at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:301)
        at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:932)
        at org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:147)
        at java.sql.DriverManager.getConnection(DriverManager.java:571)
        at java.sql.DriverManager.getConnection(DriverManager.java:187)
        at org.apache.derby.impl.tools.ij.ij.dynamicConnection(ij.java:1486)
        at org.apache.derby.impl.tools.ij.ij.ConnectStatement(ij.java:1316)
        at org.apache.derby.impl.tools.ij.ij.ijStatement(ij.java:1101)
        at org.apache.derby.impl.tools.ij.utilMain.runScriptGuts(utilMain.java:347)
        at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:245)
        at org.apache.derby.impl.tools.ij.Main.go(Main.java:229)
        at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:184)
        at org.apache.derby.impl.tools.ij.Main.main(Main.java:75)
        at org.apache.derby.tools.ij.main(ij.java:59)
        at org.apache.derby.iapi.tools.run.main(run.java:53)
    Caused by: ERROR XJ004: Database 'wombat' not found.
        at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:290)
        at org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory.java:162)
        at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:73)
        ... 22 more
    ij>

Parent topic: ij properties reference
Related reference
ij.connection.connectionName property
ij.database property
ij.dataSource property
ij.maximumDisplayWidth property
ij.outfile property
ij.password property
ij.protocol property
ij.protocol.protocolName property
ij.showErrorCode property
ij.showNoConnectionsAtStart property
ij.showNoCountForSelect property
ij.URLCheck property
ij.user property
derby.ui.codeset property
derby.ui.locale property