Format:
Recent snippets matching tags of exception
using System.Diagnostics; try { } catch (Exception ex) { Debug.WriteLine("Exception: " + ex.Message); } Finally
25 Views
no comments
[Serializable] public class CustomException : Exception { public CustomException() : base() { } public CustomException(string message) : base(message) { } public CustomException(string format, params object[] args)
72 Views
no comments
class Program { static void Main(string[] args) { try { var mock = new Mock<IService>(); const long iterationCount = 1000000; Parallel.For(0, iterationCount, i => mock.Object.DoWork());
381 Views
no comments
using System; using System.Runtime.Serialization; public class ArgumentExceptionTemplate : ArgumentException { public ArgumentExceptionTemplate() { } public ArgumentExceptionTemplate(string message)
276 Views
no comments
using System; using System.Runtime.Serialization; public class ExceptionTemplate : Exception { public ExceptionTemplate() { } public ExceptionTemplate(string message)
359 Views
no comments
// search for the most "deepest" inner exception string mostInnerException = ""; Exception innerException = ex.InnerException; if (innerException != null) while (innerException.InnerException != null) innerException = innerException.InnerException; if (innerException != null) mostInnerException = innerException.ToString(); // init log info
319 Views
no comments
<%@Page language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" type="text/css" href="../westwind.css" /> <title>Web Connection Adminstration</title> <style type="text/css"> .containercontent { padding: 10px;
447 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
