Package eu.ciechanowiec.conditional
Class MismatchedReturnTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- eu.ciechanowiec.conditional.MismatchedReturnTypeException
-
- All Implemented Interfaces:
Serializable
public class MismatchedReturnTypeException extends RuntimeException
Unchecked exception that indicates mismatch between an actual return type and a demanded return type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MismatchedReturnTypeException(String actualReturnTypeAsString, String demandedReturnTypeAsString)Constructs an instance of aMismatchedReturnTypeExceptionwith a template message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MismatchedReturnTypeException
MismatchedReturnTypeException(String actualReturnTypeAsString, String demandedReturnTypeAsString)
Constructs an instance of aMismatchedReturnTypeExceptionwith a template message.- Parameters:
actualReturnTypeAsString- - actual return type represented as a stringdemandedReturnTypeAsString- - demanded return type represented as a string
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-