Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the meaning of "wtf" in the Android Volley? [duplicate]

I encountered the method

 public static void wtf(String format, Object... args) {
        Log.wtf(TAG, buildMessage(format, args));
    }



public static int wtf(String tag, String msg, Throwable tr) {
        throw new RuntimeException("Stub!");
    }

When I was having a closer look on the Android Volley, However this method is used to log the error in the Volley By the Library Developers but is this making any other sense other than the usual ones? I am not sure if a programmer should have such naming conventions?

like image 332
Sanjeet A Avatar asked Dec 24 '22 12:12

Sanjeet A


2 Answers

It's made very clear in the API docs that WTF stands, in this case for What a Terrible Failure. You can take a page out of Dr. Evil's book and say it like this: ;).

enter image description here

like image 146
NSNoob Avatar answered Feb 18 '23 11:02

NSNoob


Quoting from developer.android.com:

What a Terrible Failure: Report a condition that should never happen. The error will always be logged at level ASSERT with the call stack.

like image 34
Mattia Maestrini Avatar answered Feb 18 '23 13:02

Mattia Maestrini