showwarning¶
-
utilipy.utils.exceptions.showwarning(message: Any, category: type = <class 'utilipy.utils.exceptions.utilipyWarning'>, filename: str = '', lineno: int = -1, file: None = None, line: None = None)[source]¶ Override
showwarning().showwarning docs
Write a warning to a file. The default implementation calls
formatwarning`(`message(),category,filename,lineno,line) and writes the resulting string to file, which defaults tostderr(). You may replace this function with any callable by assigning toshowwarning(). line is a line of source code to be included in the warning message; if line is not supplied,formatwarning()will try to read the line specified byfilenameandlineno.- Parameters
- messageAny
- categorytype, optional
- filenamestr, optional
- linenoint, optional
- filefile-type or None, optional
- linestr or None, optional