1 package JSci.maths.categories; 2 3 /** 4 * This exception occurs when trying to compose two morphisms 5 * whose composition is undefined. 6 * @version 1.0 7 * @author Mark Hale 8 */ 9 public final class UndefinedCompositionException extends RuntimeException { 10 /** 11 * Constructs a UndefinedCompositionException with no detail message. 12 */ 13 public UndefinedCompositionException() {} 14 /** 15 * Constructs a UndefinedCompositionException with the specified detail message. 16 */ 17 public UndefinedCompositionException(String s) { 18 super(s); 19 } 20 } 21 22