Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.Log;

public class Main {
    /**
     * Log an error
     * @param message The message
     * @param throwable (optional) The cause ({@link Throwable})
     */
    public static void error(String message, Throwable... throwable) {
        if (throwable.length != 0)
            Log.e("ERROR", message, throwable[0]);
        else
            Log.e("ERROR", message);
    }
}