f46ceab68b1751bb031f58fbb553d504d87c00bb
FAQ/ProcessFriendlyException.md
| ... | ... | @@ -0,0 +1,24 @@ |
| 1 | +#ProcessFriendlyException |
|
| 2 | + |
|
| 3 | +[[_TOC_]] |
|
| 4 | + |
|
| 5 | +##About |
|
| 6 | + |
|
| 7 | +Represents a method that produces more user-friendly output when a report has errors. This will be rendered to the web browser. |
|
| 8 | + |
|
| 9 | +##C# Example |
|
| 10 | + |
|
| 11 | +```csharp |
|
| 12 | +public override Control ProcessFriendlyException(Exception exception) |
|
| 13 | +{ |
|
| 14 | + return new LiteralControl("exception occurred " + exception.Message); |
|
| 15 | +} |
|
| 16 | +``` |
|
| 17 | + |
|
| 18 | +##VB.NET Example |
|
| 19 | + |
|
| 20 | +```visualbasic |
|
| 21 | +Public Overrides Function ProcessFriendlyException(exception As Exception) As Control |
|
| 22 | + Return New LiteralControl("exception occurred " + exception.Message) |
|
| 23 | +End Function |
|
| 24 | +``` |
|
| ... | ... | \ No newline at end of file |