internal SessionStateUnauthorizedAccessException(
     string message,
     string itemName,
     SessionStateCategory sessionStateCategory)
     : base(message, itemName, sessionStateCategory)
 {
 }
 internal SessionStateUnauthorizedAccessException(
     string message,
     string itemName,
     SessionStateCategory sessionStateCategory)
     : base(message, itemName, sessionStateCategory)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 6
0
 internal ProviderNotFoundException(
     string itemName,
     SessionStateCategory sessionStateCategory,
     string errorIdAndResourceId,
     params object[] messageArgs)
     : base(itemName, sessionStateCategory, errorIdAndResourceId, ErrorCategory.ObjectNotFound, messageArgs)
 {
 }
Ejemplo n.º 7
0
 internal SessionStateException(
     string message,
     string itemName,
     SessionStateCategory sessionStateCategory)
     : base(message)
 {
     ItemName             = itemName;
     SessionStateCategory = sessionStateCategory;
 }
Ejemplo n.º 8
0
 internal SessionStateException(
     string message,
     string itemName,
     SessionStateCategory sessionStateCategory)
     : base(message)
 {
     ItemName = itemName;
     SessionStateCategory = sessionStateCategory;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 19
0
 internal SessionStateException(string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, ErrorCategory errorCategory, params object[] messageArgs)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 21
0
 internal SessionStateUnauthorizedAccessException(string itemName, SessionStateCategory sessionStateCategory, string errorIdAndResourceId, string resourceStr) : base(itemName, sessionStateCategory, errorIdAndResourceId, resourceStr, ErrorCategory.WriteError, new object[0])
 {
 }