package simizer.storage;

/**
 * This exception is raised when the system tries to load a resource that is too
 * big for the current memory
 *
 * @author slefebvr
 */
public class NotEnoughSpaceException extends Exception {

  private Memory mem;

  public NotEnoughSpaceException(Memory mem) {
    this.mem = mem;
  }

  public Memory getMemory() {
    return mem;
  }

}

@@ -23,16 +23,85 @@
 e;%0A%0A/**%0A
+ * Thrown when there is not enough space to store a resource.%0A * %3Cp%3E%0A
  * This 
@@ -184,30 +184,55 @@
 big 
-for the current
+to be stored in the currently-available
  memory
+.
 %0A *%0A
@@ -246,16 +246,24 @@
 hor 
-sl
+Sylvain L
 efebvr
+e
 %0A */
@@ -321,16 +321,62 @@
 tion %7B%0A%0A
+  /** The object where the error occurred. */%0A
   privat
@@ -377,16 +377,22 @@
 private 
+final 
 Memory m
@@ -393,19 +393,185 @@
 mory mem
+ory
 ;%0A%0A
+  /**%0A   * Initializes the error corresponding to the specified %7B@code Memory%7D.%0A   *%0A   * @param memory the %7B@link Memory%7D object where the problem occurred%0A   */%0A
   public
@@ -605,20 +605,90 @@
 mory mem
+ory
 ) %7B%0A
+    super(%22There is not enough space to storage that resource.%22);%0A%0A
     this
@@ -695,21 +695,187 @@
 .mem
+ory
  = mem
+ory
 ;%0A  %7D%0A%0A
+  /**%0A   * Returns the %7B@code Memory%7D associated with this %7B@code Exception%7D.%0A   *%0A   * @return the %7B@link Memory%7D associated with this %7B@code Exception%7D%0A   */%0A
   pu
@@ -914,16 +914,19 @@
 turn mem
+ory
 ;%0A  %7D%0A%0A%7D

Add documentation to the NotEnoughSpaceException.