Ejemplo n.º 1
0
        public BuilderInvalidFileNameException(String fileName, String fileExtensions, InvalidFileNameExceptionType ExceptionType)
        {
            this.fileName       = fileName;
            this.fileExtensions = fileExtensions;
            this.ExceptionType  = ExceptionType;

            if (ExceptionType == InvalidFileNameExceptionType.InvalidFileName)
            {
                SetInvalidFileNameCustomMessage(this.fileName, this.fileExtensions);
            }
            else if (ExceptionType == InvalidFileNameExceptionType.InvalideExtension)
            {
                SetInvalidExtensionCustomMessage(this.fileName, this.fileExtensions);
            }
        }
        public BuilderInvalidFileNameException(String fileName, String fileExtensions, InvalidFileNameExceptionType ExceptionType ) 
        {
            this.fileName = fileName;
            this.fileExtensions = fileExtensions;
            this.ExceptionType = ExceptionType;

            if (ExceptionType == InvalidFileNameExceptionType.InvalidFileName) 
            {
                SetInvalidFileNameCustomMessage(this.fileName, this.fileExtensions);
            }
            else if (ExceptionType == InvalidFileNameExceptionType.InvalideExtension) 
            {
                SetInvalidExtensionCustomMessage(this.fileName, this.fileExtensions);
            }
            
        }