CK.Monitoring.Tests.TextFileTests.ThrowExceptionWithInner C# (CSharp) Method

ThrowExceptionWithInner() static private method

static private ThrowExceptionWithInner ( bool loaderException = false ) : Exception
loaderException bool
return System.Exception
        static Exception ThrowExceptionWithInner( bool loaderException = false )
        {
            Exception e;
            try { throw new Exception( "Outer", loaderException ? ThrowLoaderException() : ThrowSimpleException( "Inner" ) ); }
            catch( Exception ex ) { e = ex; }
            return e;
        }