-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
166 lines (129 loc) · 8.19 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="generator" content="Bootply" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>StructureMap - Interpreting Exceptions</title>
<link href="/content/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="/content/prism.css" rel="stylesheet" type="text/css" />
<link href="/content/theme.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" />
<link rel="icon" type="image/x-icon" href="/content/images/structuremap-logo.ico">
<link rel="icon" type="image/png" href="/content/images/structuremap-logo-60x60.png">
<link rel="apple-touch-icon" type="image/png" href="/content/images/structuremap-logo-60x60.png">
<link rel="apple-touch-icon" type="image/png" sizes="72x72" href="/content/images/structuremap-logo-72x72.png">
<link rel="apple-touch-icon" type="image/png" sizes="114x114" href="/content/images/structuremap-logo-114x114.png">
<link rel="apple-touch-icon" type="image/png" sizes="144x144" href="/content/images/structuremap-logo-144x144.png">
<!-- CSS code from Bootply.com editor -->
<link href="/content/affix.css" rel="stylesheet" type="text/css" />
</head>
<!-- HTML code from Bootply.com editor -->
<body >
<a href="https://github.com/structuremap/structuremap"><img style="z-index: 5000; position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png"></a>
<nav class="navbar navbar-default navbar-fixed-top" role="banner">
<div class="container">
<div class="navbar-header">
<a href="/" class="navbar-brand">StructureMap 4.7.0</a>
</div>
<nav class="collapse navbar-collapse" role="navigation">
<ul class="nav navbar-nav pull-right">
<li>
<a href="/quickstart">A Gentle Quickstart</a>
</li>
<li>
<a href="/documentation">Documentation</a>
</li>
<li>
<a href="https://groups.google.com/forum/#!forum/structuremap-users">Google Group</a>
</li>
<li>
<a href="https://gitter.im/structuremap/structuremap?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img src="https://camo.githubusercontent.com/da2edb525cde1455a622c58c0effc3a90b9a181c/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667" alt="Join the chat at https://gitter.im/structuremap/structuremap" data-canonical-src="https://badges.gitter.im/Join%20Chat.svg" style="max-width:100%;"></a>
</li>
<li><a href="/interception-and-decorators" title="Interception and Decorators">Previous</a></li>
<li><a href="/diagnostics" title="Diagnostics">Next</a></li>
</ul>
<div class="navbar-form navbar-left" role="search">
<div class="form-group">
<input id="search" type="search" class="form-control" placeholder="Search">
</div>
</div>
</nav>
</div>
</nav>
<div class="container">
<nav class="navbar-inverse">
<ol class="breadcrumb"><li><a href="/">StructureMap</a></li><li class="active">Interpreting Exceptions</li></ol>
</nav>
</div>
<!--main-->
<div class="container">
<div class="row">
<!--left-->
<div class="col-md-3" id="leftCol">
<ul class="nav nav-stacked affix" id="sidebar">
<li><h3><img src="/content/images/structuremap-logo-210x210.png" alt="StructureMap 4.7.0" width="210" height="210"></h3></li>
<li><h3 class="no-margin">Next</h3><p><a href="/diagnostics">Diagnostics</a></p></li>
<li><h3 class="no-margin">Previous</h3><a href="/interception-and-decorators">Interception and Decorators</a></p></li>
</ul>
</div><!--/left-->
<!--right-->
<div class="col-md-9">
<h1>Interpreting Exceptions <a href="https://github.com/structuremap/structuremap/blob/master/documentation/interpreting-exceptions.md" class="text-muted small pull-right fa fa-github" style="margin-top: 10px"> Edit on GitHub</a></h1>
<hr />
<div id="main-pane">
<!--Title: Interpreting Exceptions-->
<!--Url: interpreting-exceptions-->
<p>Improving the exception messages was one of the primary goals of the big StructureMap 3.0 release. StructureMap exceptions should
show a "StructureMap-specific stacktrace" describing where in the object graph StructureMap was when an exception occurred, while
trying hard not to obscure the actual problems. In some cases, StructureMap will append <a href="/diagnostics">diagnostic views</a>
to the exception output. <strong>If you are still using StructureMap 2.5-2.6, the better exception messages alone are a justification for upgrading.</strong></p>
<p>StructureMap throws a couple custom exceptions, all of which implement a base <code>StructureMapException</code> type:</p>
<ol>
<li><code>StructureMapBuildException</code> -- a failure was detected during an attempt to build or resolve a requested object or dependency, but outside of
StructureMap code. This exception wraps the actual exception and adds StructureMap-specific contextual information. <strong>Always check the inner
exception</strong> when this exception is thrown.</li>
<li><code>StructureMapInterceptorException</code> -- a configured interceptor failed during object construction. See the inner exception.</li>
<li><code>StructureMapBuildPlanException</code> -- StructureMap is missing some kind of configuration or needs more explicit registrations in order to
build an <code>Instance</code>. In a few cases, this exception will be thrown if StructureMap cannot create and compile a <code>Func</code> internally for the
<code>Instance.</code></li>
<li><code>StructureMapConfigurationException</code> -- thrown by the <a href="/diagnostics/validating-container-configuration">container validation mechanism</a></li>
</ol>
</div>
<hr />
<nav>
<span>
<strong>Previous: </strong><a href="/interception-and-decorators">Interception and Decorators</a>
</span>
<span class="pull-right">
<strong>Next: </strong><a href="/diagnostics">Diagnostics</a>
</span>
</nav>
</div><!--/right-->
</div><!--/row-->
</div><!--/container-->
</body>
<foot>
<script type='text/javascript' src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type='text/javascript' src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/content/embed.js"></script>
<script type="text/javascript" src="/content/prism.js"></script>
<script type="text/javascript" src="/content/sidebar.js"></script>
<script type="text/javascript" src="/content/affix.js"></script>
<script>
$('#search').keyup(function(e){
if(e.keyCode == 13) {
var search = $('#search').val();
var url = 'https://www.google.com/#q=site:structuremap.github.io ' + search;
url = encodeURI(url);
//alert(url);
window.location.href = url;
e.stopPropagation();
if (e.cancelBubble!=null) e.cancelBubble = true;
return false;
}
});
</script>
</foot>
</html>