From 298c0c8842845b23a01a68b0180a9323aabccf78 Mon Sep 17 00:00:00 2001
From: Marco Zanon <info@marcozanon.com>
Date: Wed, 24 Jul 2019 22:01:24 +0000
Subject: [PATCH] Modified method to handle Errors too.

---
 7.x/src/java/com/marcozanon/macaco/MInformation.java | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/7.x/src/java/com/marcozanon/macaco/MInformation.java b/7.x/src/java/com/marcozanon/macaco/MInformation.java
index a497495..c5f4ad2 100644
--- a/7.x/src/java/com/marcozanon/macaco/MInformation.java
+++ b/7.x/src/java/com/marcozanon/macaco/MInformation.java
@@ -30,16 +30,16 @@ public class MInformation extends MObject {
         return s.toString();
     }
 
-    /* Exceptions. */
+    /* Throwables. */
 
-    public static String getExceptionAsString(Exception exception) {
-        if (null == exception) {
-            throw new IllegalArgumentException("Invalid 'exception': null.");
+    public static String getThrowableAsString(Throwable throwable) {
+        if (null == throwable) {
+            throw new IllegalArgumentException("Invalid 'throwable': null.");
         }
         //
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
-        exception.printStackTrace(pw);
+        throwable.printStackTrace(pw);
         pw.flush();
         sw.flush();
         //
-- 
2.30.2