internal SessionStateUnauthorizedAccessException( string message, string itemName, SessionStateCategory sessionStateCategory) : base(message, itemName, sessionStateCategory) { }
internal SessionStateUnauthorizedAccessException( string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId) : base(itemName, sessionStateCategory, errorIdAndResourceId, ErrorCategory.WriteError) { }
internal SessionStateOverflowException( string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, params object[] messageArgs) : base(itemName, sessionStateCategory, errorIdAndResourceId, ErrorCategory.InvalidOperation, messageArgs) { }
public SessionStateScope(SessionStateScope <T> parentItems, SessionStateCategory sessionStateCategory) { ParentScope = parentItems; Items = new Dictionary <string, T>(StringComparer.CurrentCultureIgnoreCase); //TODO: care about AllScope items! SessionStateCategory = sessionStateCategory; }
internal ProviderNotFoundException( string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, params object[] messageArgs) : base(itemName, sessionStateCategory, errorIdAndResourceId, ErrorCategory.ObjectNotFound, messageArgs) { }
internal SessionStateException( string message, string itemName, SessionStateCategory sessionStateCategory) : base(message) { ItemName = itemName; SessionStateCategory = sessionStateCategory; }
internal SessionStateException(string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, ErrorCategory errorCategory, params object[] messageArgs) : base(String.Format("The {0} \"{1}\" ({2}) caused the following error: {3}", new object[] { sessionStateCategory.ToString(), itemName, errorIdAndResourceId, errorCategory.ToString() })) { //TODO: make this better SessionStateCategory = sessionStateCategory; ErrorRecord = new ErrorRecord(this, errorIdAndResourceId, errorCategory, null); }
internal SessionStateException(string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, ErrorCategory errorCategory, params object[] messageArgs) : base(String.Format("The {0} \"{1}\" ({2}) caused the following error: {3}", new object[] {sessionStateCategory.ToString(), itemName, errorIdAndResourceId, errorCategory.ToString()})) { //TODO: make this better SessionStateCategory = sessionStateCategory; ErrorRecord = new ErrorRecord(this, errorIdAndResourceId, errorCategory, null); }
internal SessionStateException( string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, ErrorCategory errorCategory, params object[] messageArgs) : base(SessionStateException.BuildMessage(itemName, errorIdAndResourceId, messageArgs)) { this._itemName = itemName; this._sessionStateCategory = sessionStateCategory; this._errorId = errorIdAndResourceId; this._errorCategory = errorCategory; }
/// <summary> /// Constructs a SessionStateException. /// </summary> /// <param name="itemName">Name of session state object.</param> /// <param name="sessionStateCategory">Category of session state object.</param> /// <param name="resourceStr">This string is the message template string.</param> /// <param name="errorIdAndResourceId"> /// This string is the ErrorId passed to the ErrorRecord, and is also /// the resourceId used to look up the message template string in /// SessionStateStrings.txt. /// </param> /// <param name="errorCategory">ErrorRecord.CategoryInfo.Category.</param> /// <param name="messageArgs"> /// Additional insertion strings used to construct the message. /// Note that itemName is always the first insertion string. /// </param> internal SessionStateException( string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, string resourceStr, ErrorCategory errorCategory, params object[] messageArgs) : base(BuildMessage(itemName, resourceStr, messageArgs)) { _itemName = itemName; _sessionStateCategory = sessionStateCategory; _errorId = errorIdAndResourceId; _errorCategory = errorCategory; }
/// <summary> /// Constructs a SessionStateException /// </summary> /// /// <param name="itemName"> name of session state object </param> /// <param name="sessionStateCategory"> category of session state object </param> /// <param name="resourceStr">This string is the message template string.</param> /// <param name="errorIdAndResourceId"> /// This string is the ErrorId passed to the ErrorRecord, and is also /// the resourceId used to look up the message template string in /// SessionStateStrings.txt. /// </param> /// <param name="errorCategory"> ErrorRecord.CategoryInfo.Category </param> /// <param name="messageArgs"> /// Additional insertion strings used to construct the message. /// Note that itemName is always the first insertion string. /// </param> internal SessionStateException( string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, string resourceStr, ErrorCategory errorCategory, params object[] messageArgs) : base(BuildMessage(itemName, resourceStr, messageArgs)) { _itemName = itemName; _sessionStateCategory = sessionStateCategory; _errorId = errorIdAndResourceId; _errorCategory = errorCategory; }
/// <summary> /// Constructs a SessionStateOverflowException /// </summary> /// <param name="itemName"> /// The name of the session state object the error occurred on. /// </param> /// /// <param name="sessionStateCategory"> /// The category of session state object. /// </param> /// /// <param name="errorIdAndResourceId"> /// This string is the ErrorId passed to the ErrorRecord, and is also /// the resourceId used to look up the message template string in /// SessionStateStrings.txt. /// </param> /// /// <param name="resourceStr"> /// This string is the message template string /// </param> /// /// <param name="messageArgs"> /// Additional insertion strings used to construct the message. /// Note that itemName is always the first insertion string. /// </param> internal SessionStateOverflowException( string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, string resourceStr, params object[] messageArgs ) : base(itemName, sessionStateCategory, errorIdAndResourceId, resourceStr, ErrorCategory.InvalidOperation, messageArgs) { }
internal SessionStateException(string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, ErrorCategory errorCategory, params object[] messageArgs) { throw new NotImplementedException(); }
internal SessionStateUnauthorizedAccessException(string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, params object[] messageArgs) : base(itemName, sessionStateCategory, errorIdAndResourceId, ErrorCategory.WriteError, messageArgs) { }
/// <summary> /// Constructs a SessionStateUnauthorizedAccessException /// </summary> /// /// <param name="itemName"> /// The name of the session state object the error occurred on. /// </param> /// /// <param name="sessionStateCategory"> /// The category of session state object. /// </param> /// /// <param name="errorIdAndResourceId"> /// This string is the ErrorId passed to the ErrorRecord, and is also /// the resourceId used to look up the message template string in /// SessionStateStrings.txt. /// </param> /// /// <param name="resourceStr"> /// This string is the ErrorId passed to the ErrorRecord, and is also /// the resourceId used to look up the message template string in /// SessionStateStrings.txt. /// </param> internal SessionStateUnauthorizedAccessException( string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, string resourceStr ) : base(itemName, sessionStateCategory, errorIdAndResourceId, resourceStr, ErrorCategory.WriteError) { }
/// <summary> /// Constructs a ProviderNotFoundException /// </summary> /// /// <param name="itemName"> /// The name of provider that could not be found. /// </param> /// /// <param name="sessionStateCategory"> /// The category of session state object /// </param> /// /// <param name="errorIdAndResourceId"> /// This string is the ErrorId passed to the ErrorRecord, and is also /// the resourceId used to look up the message template string in /// SessionStateStrings.txt. /// </param> /// /// <param name="resourceStr"> /// This string is the message template string /// </param> /// /// <param name="messageArgs"> /// Additional arguments to build the message from. /// </param> internal ProviderNotFoundException( string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, string resourceStr, params object[] messageArgs) : base( itemName, sessionStateCategory, errorIdAndResourceId, resourceStr, ErrorCategory.ObjectNotFound, messageArgs) { }
internal SessionStateUnauthorizedAccessException(string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, string resourceStr) : base(itemName, sessionStateCategory, errorIdAndResourceId, resourceStr, ErrorCategory.WriteError, new object[0]) { }