# Exception Output



# Exceptions Output

How to catch and display exceptions

## Example

```run
<cfscript>
try {
  throw "an error happened";
}
catch ( any e ){
  dump(e);
}
</cfscript>
Go on with your code
```

[tag-Dump] shows the full exception structure without blocking your code. Dump includes all stack trace with it.

## Example 2

```cfml
<cfscript>
try {
  throw "an error happened again!";
}
catch ( any e ){
  echo(e);
}
</cfscript>
Go on with your code
```

Here we simply echo the exception. It shows the normal exception without blocking your code.

[https://www.youtube.com/watch?v=vM-4R2A-ZsM](https://www.youtube.com/watch?v=vM-4R2A-ZsM)

# Categories

[Debugging](../categories/debugging.md)

# See Also

[<cfcatch>](../reference/tags/catch.md), [<cfrethrow>](../reference/tags/rethrow.md), [<cfthrow>](../reference/tags/throw.md), [<cftry>](../reference/tags/try.md)