November Happy Hour will be moved to Thursday December 5th.

Class InvalidPasswordException

Exception that is thrown by EPiServer when a non-fatal error occurs.

Inheritance
System.Object
System.Exception
InvalidPasswordException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
public class InvalidPasswordException : EPiServerException, ISerializable, _Exception
Remarks

All non-fatal exceptions in EPiServer is derived from this class.

If an exception occurs while translating a message the default message will be displayed instead, otherwise the actual cause of a exception could be hidden.

Examples

Example of throwing a exception with error message translated into different languages, see LocalizationService for more information about adding custom language resources.

throw new EPiServerException("My custom error","/customerror/genericfail");

Constructors

InvalidPasswordException()

Initializes a new instance

Declaration
public InvalidPasswordException()

InvalidPasswordException(SerializationInfo, StreamingContext)

Initializes a new instance of InvalidPasswordException

Declaration
protected InvalidPasswordException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info
System.Runtime.Serialization.StreamingContext context

InvalidPasswordException(String)

Initializes a new instance with a specified error message.

Declaration
public InvalidPasswordException(string message)
Parameters
Type Name Description
System.String message

Error message

InvalidPasswordException(String, Exception)

Initializes a new instance with a specified error message and a reference to the inner exception that is the cause of this exception.

Declaration
public InvalidPasswordException(string message, Exception innerException)
Parameters
Type Name Description
System.String message

Error message

System.Exception innerException

The inner exception that is the cause of this exception

InvalidPasswordException(String, String)

Initializes a new instance with a specified error message and a language key passed to LocalizationService for translation.

Declaration
public InvalidPasswordException(string message, string languageKey)
Parameters
Type Name Description
System.String message

Error message

System.String languageKey

Language key passed to LocalizationService for translation

InvalidPasswordException(String, String, Exception)

Initializes a new instance with a specified error message and a reference to the inner exception that is the cause of this exception. And a language key passed to LocalizationService for translation.

Declaration
public InvalidPasswordException(string message, string languageKey, Exception innerException)
Parameters
Type Name Description
System.String message

Error message

System.String languageKey

Language key passed to LocalizationService for translation

System.Exception innerException

The inner exception that is the cause of this exception

InvalidPasswordException(String, String, Exception, String[])

Initializes a new instance with a specified error message and a reference to the inner exception that is the cause of this exception. And a language key passed to LocalizationService for translation.

Declaration
public InvalidPasswordException(string message, string languageKey, Exception innerException, params string[] list)
Parameters
Type Name Description
System.String message

Error message

System.String languageKey

Language key passed to LocalizationService for translation

System.Exception innerException

The inner exception that is the cause of this exception

System.String[] list

Parameter list to substitute values in error text using System.String.Format(System.String,System.Object[])

InvalidPasswordException(String, String, String[])

Initializes a new instance with a specified error message and a language key passed to LocalizationService for translation.

Declaration
public InvalidPasswordException(string message, string languageKey, params string[] list)
Parameters
Type Name Description
System.String message

Error message

System.String languageKey

Language key passed to LocalizationService for translation

System.String[] list

Parameter list to substitute values in error text using System.String.Format(System.String,System.Object[])

Implements

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception

Extension Methods