Advertisement
Guest User

NullSumException

a guest
May 30th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. //Submitted by Dima Yankovoy 311868442 & Snir Yacoby 201561933
  2. package il.ac.hit.project.model
  3.  
  4. /**
  5.  * NullSumException is thrown when the method convert() cannot proceed - the sum that it gets is either 0
  6.  * or a negative number.
  7.  * @param msg The message thrown with description of the exception.
  8.  * @param cause The possible cause for the exception.
  9.  */
  10. class NullSumException(msg: String = null, cause : Throwable = null ) extends Exception(msg, cause){
  11.  
  12.   def this() = this("",null)
  13.   def this(msg: String ) = this(msg,null)
  14.   def this(cause: Throwable) = this("", cause)
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement