Exception_Chunk_Size.cs 901 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace System.Fire.Container.Exception {
  5. /// <summary>
  6. /// Exception für fehlerhafte ChunkSize
  7. /// </summary>
  8. public class Exception_Chunk_Size : ApplicationException {
  9. private int _c = 0;
  10. /// <summary>
  11. /// Erstellt eine neue Exception für fehlerhafte ChunkSize
  12. /// </summary>
  13. /// <param name="ChunkSize">Gibt die fehlerhaft angegebene Chunksize fest</param>
  14. public Exception_Chunk_Size(int ChunkSize):
  15. base("The Container Chunk-Size must be 4 or greater and divideable throw 4") {
  16. this._c = ChunkSize;
  17. }
  18. /// <summary>Fehlerhafte Chunksize Angabe</summary>
  19. /// <returns>Gibt die fehlerhafte Chunksize Angabe zurück</returns>
  20. public int ChunkSize {
  21. get { return this._c; }
  22. }
  23. }
  24. }