package Ġhr . fer . zem ris . math . exceptions Ċ Ċ import Ġhr . fer . zem ris . math . matrix . Matrix Ċ import Ġjava . lang . RuntimeException Ċ Ċ sealed Ġclass ĠMath Exception ( message : ĠString ) Ġ: ĠRuntimeException ( message ) Ċ Ċ class ĠVector s Cannot Have Zero Dimension () ĊĠĠĠ Ġ: ĠMath Exception (" Vector Ġmust Ġhave Ġmore Ġthan Ġ 1 Ġdimension ") Ċ Ċ class ĠIn compatible Vectors Exception ( dimension 1 : ĠInt , Ġdimension 2 : ĠInt ) ĊĠĠĠ Ġ: ĠMath Exception (" Vectors Ġwith Ġdimensions Ġ$ dimension 1 Ġand Ġ$ dimension 2 Ġare Ġnot Ġcompatible ") Ċ Ċ class ĠCross Product In compatibility Exception ( dimension 1 : ĠInt , Ġdimension 2 : ĠInt ) ĊĠĠĠ Ġ: ĠMath Exception (" To Ġcalculate Ġcross Ġproduct Ġboth Ġvectors Ġmust Ġhave Ġdimension Ġthree , Ġgiven Ġvectors Ġhad Ġ$ dimension 1 Ġand Ġ$ dimension 2 ") Ċ Ċ class ĠMatrix Creation Exception ( message : ĠString ) ĊĠĠĠ Ġ: ĠMath Exception (" All Ġrows Ġmust Ġbe Ġequal Ġsize ") Ċ Ċ class ĠMat rices Are Not The Same Dimension Exception ( m 1 : ĠMatrix , Ġm 2 : ĠMatrix ) ĊĠĠĠ Ġ: ĠMath Exception (" Mat rices Ġ(${ m 1 . rows }, Ġ${ m 1 . columns }) Ġand Ġ(${ m 2 . rows }, Ġ${ m 2 . columns }) Ġare Ġnot Ġthe Ġsame Ġdimension .") Ċ Ċ class ĠMat rices Are Not Compatible For Multip lication Exception ( m 1 : ĠMatrix , Ġm 2 : ĠMatrix ) ĊĠĠĠ Ġ: ĠMath Exception (" Mat rices Ġ(${ m 1 . rows }, Ġ${ m 1 . columns }) Ġand Ġ(${ m 2 . rows }, Ġ${ m 2 . columns }) Ġare Ġcompatible Ġfor Ġmultiplication .") Ċ Ċ class ĠMatrix Cannot Be Tran formed Into A Vector ( m : ĠMatrix ) ĊĠĠĠ Ġ: ĠMath Exception (" Matrix Ġ(${ m . rows }, Ġ${ m . columns } Ġcannot Ġbe Ġtransformed Ġinto Ġa Ġve co tr ")