internal SessionStateUnauthorizedAccessException(
     string message,
     string itemName,
     SessionStateCategory sessionStateCategory)
     : base(message, itemName, sessionStateCategory)
 {
 }
 internal SessionStateUnauthorizedAccessException(
     string message,
     string itemName,
     SessionStateCategory sessionStateCategory)
     : base(message, itemName, sessionStateCategory)
 {
 }
Пример #3
0
 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)
 {
 }
Пример #5
0
        public SessionStateScope(SessionStateScope <T> parentItems, SessionStateCategory sessionStateCategory)
        {
            ParentScope = parentItems;
            Items       = new Dictionary <string, T>(StringComparer.CurrentCultureIgnoreCase);
            //TODO: care about AllScope items!

            SessionStateCategory = sessionStateCategory;
        }
Пример #6
0
 internal ProviderNotFoundException(
     string itemName,
     SessionStateCategory sessionStateCategory,
     string errorIdAndResourceId,
     params object[] messageArgs)
     : base(itemName, sessionStateCategory, errorIdAndResourceId, ErrorCategory.ObjectNotFound, messageArgs)
 {
 }
Пример #7
0
 internal SessionStateException(
     string message,
     string itemName,
     SessionStateCategory sessionStateCategory)
     : base(message)
 {
     ItemName             = itemName;
     SessionStateCategory = sessionStateCategory;
 }
Пример #8
0
 internal SessionStateException(
     string message,
     string itemName,
     SessionStateCategory sessionStateCategory)
     : base(message)
 {
     ItemName = itemName;
     SessionStateCategory = sessionStateCategory;
 }
Пример #9
0
 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);
 }
Пример #10
0
 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);
 }
Пример #11
0
 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;
 }
Пример #12
0
 /// <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;
 }
Пример #13
0
 /// <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;
 }
Пример #14
0
 /// <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)
 {
 }
Пример #15
0
 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)
 {
 }
 internal SessionStateUnauthorizedAccessException(string itemName, SessionStateCategory sessionStateCategory, 
                                                  string errorIdAndResourceId, params object[] messageArgs)
     : base(itemName, sessionStateCategory, errorIdAndResourceId, ErrorCategory.WriteError, messageArgs)
 {
 }
Пример #18
0
 /// <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)
 {
 }
Пример #19
0
 internal SessionStateException(string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, ErrorCategory errorCategory, params object[] messageArgs)
 {
     throw new NotImplementedException();
 }
Пример #20
0
 /// <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)
 {
 }
Пример #21
0
 internal SessionStateUnauthorizedAccessException(string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, string resourceStr) : base(itemName, sessionStateCategory, errorIdAndResourceId, resourceStr, ErrorCategory.WriteError, new object[0])
 {
 }