What is the difference between the exception handling method of then in Promise and catch?

Both then and catch in

promise can handle exceptions, so what"s the difference between them in handling exceptions?

Promise.reject("error").then(()=> {}, val=> {
    console.log(val);
});

Promise.reject("error").catch(val=> {
    console.log(val);
});
Mar.30,2021

first correct a misunderstanding:
who says reject is used to handle exceptions-- reject is used to throw exceptions, and catch is used to handle exceptions.
compared to the traditional try catch writing, reject is equivalent to throw

.

then reject is the method of Promise, and catch is the method of Promise instance:

  

there is a mistake in the first function of then, which can be captured by the later catch, but not by the second function written to then.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3141d-4e9e3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3141d-4e9e3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?