Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 954497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:13:30+00:00 2026-05-16T00:13:30+00:00

Fatal error: Uncaught exception ‘EppCommandsExceptions’ with message ‘Required parameter missing’ The line in question:

  • 0

Fatal error: Uncaught exception
‘EppCommandsExceptions’ with message
‘Required parameter missing’

The line in question:

throw new EppCommandsExceptions($result->msg, $codigo); 

Why am I having this error on this line?

On EppCommandsExceptions.class.php
I have this class that extends Exception:

class EppCommandsExceptions extends Exception
{
    //could be empty.
}

Next, on CommandsController.php I have:

include_once('EppCommandsExceptions.class.php');

and, later, if something bad happens on method1:

throw new EppCommandsExceptions($result->msg, $codigo);

later, on this same controller, another method2 that will run after method1,
I have:
if something goes bad with this too:

throw new EppCommandsExceptions($result->msg, $codigo);

Later I have, for the contact part – method1

try
{
    $createdContact = $comandos->createContact($contactoVo);
}
catch(EppCommandsExceptions $e)
{
    $error .= 'Error Contact. Cód:'.$e->getCode().' Mensagem:'.$e->getMessage();
}

And later, for domain part: method2

try
{
    $createdDomain = $comandos->createDomain($domainVo);
}
catch(EppCommandsExceptions $e)
{
    $error .= 'Error Domain. Cód:'.$e->getCode().' Mensagem:'.$e->getMessage();
}

Is it because I’m using the same exception for both methods?
Should I have one Exception class for EACH method? :s

Please advice,
Thanks a lot.
MEM

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T00:13:30+00:00Added an answer on May 16, 2026 at 12:13 am

    The exception you throw will only be caught if it’s inside a try block.

    If it isn’t it’ll propagate up the call stack, until it is caught in one of the earlier calling functions.

    You’re getting that fatal error because the exception you throw is never caught, so it’s handled by the default unhandled exceptions handler, which emits the fatal error.

    Examples:

    try
    {
        $createdContact = $comandos->createContact($contactoVo);
        if (error_condition())
            throw new EppCommandsExceptions $e;
    }
    catch(EppCommandsExceptions $e)
    {
        $error .= 'Error Contact. Cód:'.$e->getCode().' Mensagem:'.$e->getMessage();
    }
    

    Throwing the exception directly in the try block is not usually very useful, because you could just as well recover from the error condition directly instead of throwing an exception. This construct becomes more useful, though, if createContact may throw an exception. In this case, you have at some point to catch EppCommandsExceptions to avoid a fatal error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 497k
  • Answers 497k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer function testPost(){ foreach ($_POST as $keya=>$vala){ foreach($_POST as $keyb=>$valb){ if… May 16, 2026 at 11:50 am
  • Editorial Team
    Editorial Team added an answer I finally found out what was causing this spacing: a… May 16, 2026 at 11:50 am
  • Editorial Team
    Editorial Team added an answer You can make a OrderLineComment and LineItem derive from a… May 16, 2026 at 11:50 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'SQLSTATE[28000] [1045] Access denied for user 'liveaide_dbuser1'@'lynx-u.znetindia.net'
I've got this error: Fatal error: Uncaught exception 'MySQLiQuery_Exception' with message 'Illegal mix of
I get the following error message: Fatal error: Uncaught exception 'Zend_Exception' with message 'File
Doctrine_Core::createTablesFromModels() is failing with the following error: Fatal error: Uncaught exception 'Doctrine_Connection_Mysql_Exception' with message
By default error page in ZF looks like this: Fatal error: Uncaught exception 'Zend_Form_Exception'
I get this error when trying to load a Zend Framework application: Fatal error:
I keep getting the following exception with a new resource Im making and i
Any ideas why I'm getting .... Fatal error: Allowed memory size of 33554432 bytes
I cannot seem to be able to figure out why I receive: Fatal error:
I am getting the following error on my site, however, i don't know what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.