Class NoDataFoundForThisDay
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cz.krystofcejchan.lite_weather_lib.enums_exception.exceptions.NoDataFoundForThisDay
- All Implemented Interfaces:
Serializable
public class NoDataFoundForThisDay extends RuntimeException
thrown if no data were found to the day
thrown in
thrown in
WeatherForecast if user calls
getToday(), getTomorrow ... methods while not including these days in constructor- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description NoDataFoundForThisDay()NoDataFoundForThisDay(String errorMsg)NoDataFoundForThisDay(String errorMsg, Throwable throwable) -
Method Summary
Modifier and Type Method Description NoDataFoundForThisDayAndTimeaddTime(String msg)method throwingNoDataFoundForThisDayAndTimeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoDataFoundForThisDay
-
NoDataFoundForThisDay
-
NoDataFoundForThisDay
public NoDataFoundForThisDay()
-
-
Method Details
-
addTime
method throwingNoDataFoundForThisDayAndTime- Parameters:
msg- message to be displayed- Returns:
- NoDataFoundForThisDay with time
-