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

  • SEARCH
  • Home
  • 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 522451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:21:19+00:00 2026-05-13T08:21:19+00:00

I am currently migrating from RubyAMF to PyAMF. In RubyAMF you can return a

  • 0

I am currently migrating from RubyAMF to PyAMF. In RubyAMF you can return a FaultObject deliberately like so:

render :amf => FaultObject.new("Thats not your pie!")

Is there comparable functionality in PyAMF? I’ve searched the docs and can’t find any mention of it.

  • 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-13T08:21:19+00:00Added an answer on May 13, 2026 at 8:21 am

    coulix is right (but due to reputation restrictions I cannot upvote! 🙂

    From within your service method, raise an exception as you would normally and PyAMF will trap that and convert it to an appropriate fault object for consumption by the requestor (e.g. using Flex Messaging this will be an ErrorMessage instance).

    class HandsOffThatPie(Exception):
        pass
    
    def get_pie(please=False):
        if not please:
            raise HandsOffThatPie('Say please!')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently migrating from SQL Server to PostgreSQL and attempting to improve a couple of
We're currently migrating from NMock2 to RhinoMocks and we're having trouble replicating this code:
We are currently migrating from PHP4 to PHP5 and have discovered an issue. In
Im currently looking at migrating from fluent nHibernate to ADO.Net Entity Framework 4. I
I'm currently migrating a big solution (~70 projects) from VS 2005 + .NET 2.0
I'm currently migrating a Spring application from the JBoss J2EE container to Sun's Glassfish
We are currently migrating a WCF service from IIS 6 to IIS 7. The
we are migrating from WebLogic web-services to Spring-WS (1.5.X). There is currently one issue
Currently thinking about pitching the argument for us migration from vs 2005 (winforms) to
I am currently working on a project which requires migration of content from different

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.