# Feature Request - abtract + throws

- Thread: https://externals.io/message/4424
- Original archive: https://news-web.php.net/php.internals/4424
- Started by Attila Strauss on 2003-09-07T20:50:26+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #4424 — Attila Strauss — 2003-09-07T20:50:26+00:00

URL: https://externals.io/message/4424#4424

Hi,

are there any plans about implementing the ability to provide throws for 
abstract classes?

Example:

---s.cut---

abstract class RDBMS_Connection_Abstract
{
    abstract public function connect() throws RDBMS_Connection_Exception;
}

class RDBMS_Connection extends RDBMS_Connection_Abstract
{
    public function connect()
    {
        echo 'implementing connect() without a "throw new 
RDBMS_Connection_Exception" should cause a PHP FATAL ERROR.';
    }
}

---e.cut---

So, any plans?

Thanks in Advance ...

Attila

-- 
+------------------------------------+
| First Name..................Attila |
+------------------------------------+
| Last Name..................Strauss |
+------------------------------------+
| Cell Phone.......+49 172 980 43 13 |
+------------------------------------+
| eMail...............attila@php.net |
+------------------------------------+

---

## #4425 — Zeev Suraski — 2003-09-08T11:09:15+00:00

URL: https://externals.io/message/4424#4425 · In reply to: #4424

At 23:50 07/09/2003, Attila Strauss wrote:
>Hi,
>
>are there any plans about implementing the ability to provide throws for 
>abstract classes?

Nope, no plans.

Zeev
