1 /* ****************************************************************************
\r
3 * Copyright (c) Microsoft Corporation. All rights reserved.
\r
5 * This software is subject to the Microsoft Public License (Ms-PL).
\r
6 * A copy of the license can be found in the license.htm file included
\r
7 * in this distribution.
\r
9 * You must not remove this notice, or any other, from this software.
\r
11 * ***************************************************************************/
\r
13 namespace System.Web.Mvc {
\r
15 using System.Web.Mvc.Resources;
\r
17 public class HandleErrorInfo {
\r
19 public HandleErrorInfo(Exception exception, string controllerName, string actionName) {
\r
20 if (exception == null) {
\r
21 throw new ArgumentNullException("exception");
\r
23 if (String.IsNullOrEmpty(controllerName)) {
\r
24 throw new ArgumentException(MvcResources.Common_NullOrEmpty, "controllerName");
\r
26 if (string.IsNullOrEmpty(actionName)) {
\r
27 throw new ArgumentException(MvcResources.Common_NullOrEmpty, "actionName");
\r
30 Exception = exception;
\r
31 ControllerName = controllerName;
\r
32 ActionName = actionName;
\r
35 public string ActionName {
\r
40 public string ControllerName {
\r
45 public Exception Exception {
\r