title: How to display custom error message instead of the exception in Flutter
body: <p>I have connected my Flutter application to MySQL. In my PHP file I have written a query to retrieve data from MySQL. If the query executes successfully the data is returning and am able to display it in my listtile.</p>
  <p>However if the query fails (if the required column is not available in my table) I want to display &quot;no data found&quot; only. But am getting &quot;Error format exception&quot;.  How to hide this error format exception?</p>
  <pre><code>_getUsers() async {
         var data = await http
          .post(&quot;http://10.0.2.2/Flutter/count.php&quot;, body: {
          &quot;dat&quot;: count,
      
      });
      var jsonData = json.decode(data.body);
      return jsonData;
    }
  </code></pre>
  <p>and my build is</p>
  <pre><code>Widget build(BuildContext context) {
      return new Scaffold(
        appBar: new AppBar(
          backgroundColor: Colors.teal,
          ),
        body: Padding(
          padding: const EdgeInsets.all(0.0),
          child: Container(
            color: Colors.teal,
            
            child: new FutureBuilder(
                future: _getUsers(), 
                builder: (BuildContext context, AsyncSnapshot snapshot) {
                  if (snapshot.connectionState == ConnectionState.waiting) {
                    return Center(
                      child: CircularProgressIndicator(),
                    );
                  }
                  if (snapshot.hasError) {
                    return Center(
                      child: new Text('Error ${snapshot.error}'),
                    );
                  }
                 
                  else {
                      return Center(
                      child: Padding(
                        padding: const EdgeInsets.fromLTRB(56.0, 8.0, 56.0, 8.0),
                        child: ListView.builder(
                            itemCount: snapshot.data?.length ?? 0,
                            itemBuilder: (BuildContext context, int index) {
                             return ListTile(
                                leading: new Text(
                                  '${snapshot.data[index][&quot;branch&quot;]}',
                                   style: TextStyle(
                                    color: Colors.white,
                                    fontSize: 25.0,
                                    ),
                                ),
                                trailing: new Text(
                                  '${snapshot.data[index][&quot;count(`branch`)&quot;.toString()]}',
                                   style: TextStyle(
                                    color: Colors.white,
                                    fontSize: 25.0,
                                   
                                  ),
                                ),
                              );
                             
                            }),
                      ),
                    );
                  }
                }),
          ),
        ),
      );
    }
  }
  </code></pre>