René's URL Explorer Experiment


Title: Always set error string before returning errors · Issue #1186 · arrayfire/arrayfire · GitHub

Open Graph Title: Always set error string before returning errors · Issue #1186 · arrayfire/arrayfire

X Title: Always set error string before returning errors · Issue #1186 · arrayfire/arrayfire

Description: The way to deal with this would be to have a macro something along the lines of AF_ERROR. Instead of throwing an exception, this just sets the error string and returns the error. Here are the culprits $ grep -ri throw src/api/cpp/ | grep...

Open Graph Description: The way to deal with this would be to have a macro something along the lines of AF_ERROR. Instead of throwing an exception, this just sets the error string and returns the error. Here are the culpr...

X Description: The way to deal with this would be to have a macro something along the lines of AF_ERROR. Instead of throwing an exception, this just sets the error string and returns the error. Here are the culpr...

Opengraph URL: https://github.com/arrayfire/arrayfire/issues/1186

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Always set error string before returning errors","articleBody":"The way to deal with this would be to have a macro something along the lines of `AF_ERROR`. Instead of throwing an exception, this just sets the error string and returns the error.\n\nHere are the culprits\n\n```\n $ grep -ri throw src/api/cpp/ | grep -v AF_THROW\nsrc/api/cpp/error.hpp:        throw af::exception(__FILE__, __LINE__, __err); \\\nsrc/api/cpp/error.hpp:        throw af::exception(__msg, __FILE__, __LINE__, __err);  \\\nsrc/api/cpp/error.hpp:#define THROW(__err) throw af::exception(__FILE__, __LINE__, __err)\nsrc/api/cpp/exampleFunction.cpp:                            // is going to return and throw corresponding\nsrc/api/cpp/array.cpp:        if (dim \u003e 3) THROW(AF_ERR_SIZE);\nsrc/api/cpp/array.cpp:        // THOU SHALL NOT THROW IN DESTRUCTORS\nsrc/api/cpp/array.cpp:                default: THROW(AF_ERR_SIZE);\n```\n\n```\n $ grep -r \"return AF_\" src/ | grep -v AF_SUCCESS\nsrc/backend/cpu/platform.cpp:    return AF_BACKEND_CPU;\nsrc/backend/cuda/platform.cpp:    return AF_BACKEND_CUDA;\nsrc/backend/opencl/platform.cpp:    return AF_BACKEND_OPENCL;\nsrc/api/unified/symbol_manager.cpp:            return AF_ERR_LOAD_LIB;\nsrc/api/unified/symbol_manager.cpp:        return AF_ERR_LOAD_LIB;\nsrc/api/unified/symbol_manager.hpp:                return AF_ERR_LOAD_LIB;\nsrc/api/unified/symbol_manager.hpp:                return AF_ERR_LOAD_SYM;\nsrc/api/unified/symbol_manager.hpp:        return AF_ERR_ARR_BKND_MISMATCH;                                                    \\\nsrc/api/c/colorspace.cpp:    return AF_ERR_NOT_SUPPORTED;\nsrc/api/c/colorspace.cpp:        default: return AF_ERR_ARG;\nsrc/api/c/colorspace.cpp:        default: return AF_ERR_ARG;\nsrc/api/c/plot.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/plot.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/version.cpp:    return AF_REVISION;\nsrc/api/c/plot3.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/plot3.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/hist.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/image.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/image.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/image.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/image.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/image.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/image.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/image.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/image.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/image.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/surface.cpp:    return AF_ERR_NO_GFX;\nsrc/api/c/imageio.cpp:    return AF_ERR_NOT_CONFIGURED;\nsrc/api/c/imageio.cpp:    return AF_ERR_NOT_CONFIGURED;\nsrc/api/c/imageio.cpp:    return AF_ERR_NOT_CONFIGURED;\nsrc/api/c/imageio.cpp:    return AF_ERR_NOT_CONFIGURED;\nsrc/api/c/imageio.cpp:    return AF_ERR_NOT_CONFIGURED;\nsrc/api/c/imageio2.cpp:    return AF_ERR_NOT_CONFIGURED;\nsrc/api/c/imageio2.cpp:    return AF_ERR_NOT_CONFIGURED;\n```\n","author":{"url":"https://github.com/pavanky","@type":"Person","name":"pavanky"},"datePublished":"2015-12-28T21:16:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1186/arrayfire/issues/1186"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1be075c6-cb9e-9a77-2a4a-10f4371f4513
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBF0E:225E33:BB22E0:FB2F09:69698415
html-safe-nonce61a9a05e51be69b000774c3f6ae1c31b1f92f8a0f207cafa03374076b3fc3c22
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjBFOjIyNUUzMzpCQjIyRTA6RkIyRjA5OjY5Njk4NDE1IiwidmlzaXRvcl9pZCI6IjQyNzE1NzI4NDcxMzA0MTIwNTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac66389ece8934d3bf2f59a89f9e88b17c60d1c8bc7780e1b6ba34c3868cbbf6fb
hovercard-subject-tagissue:124128476
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/arrayfire/arrayfire/1186/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b6e0b3be7b42052c9c020fcb738a42d687b73866f23e624e1047d4285087bcf1/arrayfire/arrayfire/issues/1186
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b6e0b3be7b42052c9c020fcb738a42d687b73866f23e624e1047d4285087bcf1/arrayfire/arrayfire/issues/1186
og:image:altThe way to deal with this would be to have a macro something along the lines of AF_ERROR. Instead of throwing an exception, this just sets the error string and returns the error. Here are the culpr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepavanky
hostnamegithub.com
expected-hostnamegithub.com
Nonef33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77
turbo-cache-controlno-preview
go-importgithub.com/arrayfire/arrayfire git https://github.com/arrayfire/arrayfire.git
octolytics-dimension-user_id5395442
octolytics-dimension-user_loginarrayfire
octolytics-dimension-repository_id25889802
octolytics-dimension-repository_nwoarrayfire/arrayfire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id25889802
octolytics-dimension-repository_network_root_nwoarrayfire/arrayfire
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release48f380098b30acbb700b04f1724481ca10d574fc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/arrayfire/arrayfire/issues/1186#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Farrayfire%2Farrayfire%2Fissues%2F1186
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Farrayfire%2Farrayfire%2Fissues%2F1186
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=arrayfire%2Farrayfire
Reloadhttps://github.com/arrayfire/arrayfire/issues/1186
Reloadhttps://github.com/arrayfire/arrayfire/issues/1186
Reloadhttps://github.com/arrayfire/arrayfire/issues/1186
arrayfire https://github.com/arrayfire
arrayfirehttps://github.com/arrayfire/arrayfire
Notifications https://github.com/login?return_to=%2Farrayfire%2Farrayfire
Fork 549 https://github.com/login?return_to=%2Farrayfire%2Farrayfire
Star 4.8k https://github.com/login?return_to=%2Farrayfire%2Farrayfire
Code https://github.com/arrayfire/arrayfire
Issues 285 https://github.com/arrayfire/arrayfire/issues
Pull requests 18 https://github.com/arrayfire/arrayfire/pulls
Actions https://github.com/arrayfire/arrayfire/actions
Projects 0 https://github.com/arrayfire/arrayfire/projects
Wiki https://github.com/arrayfire/arrayfire/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/arrayfire/arrayfire/security
Please reload this pagehttps://github.com/arrayfire/arrayfire/issues/1186
Insights https://github.com/arrayfire/arrayfire/pulse
Code https://github.com/arrayfire/arrayfire
Issues https://github.com/arrayfire/arrayfire/issues
Pull requests https://github.com/arrayfire/arrayfire/pulls
Actions https://github.com/arrayfire/arrayfire/actions
Projects https://github.com/arrayfire/arrayfire/projects
Wiki https://github.com/arrayfire/arrayfire/wiki
Security https://github.com/arrayfire/arrayfire/security
Insights https://github.com/arrayfire/arrayfire/pulse
New issuehttps://github.com/login?return_to=https://github.com/arrayfire/arrayfire/issues/1186
New issuehttps://github.com/login?return_to=https://github.com/arrayfire/arrayfire/issues/1186
Always set error string before returning errorshttps://github.com/arrayfire/arrayfire/issues/1186#top
3.2.2https://github.com/arrayfire/arrayfire/milestone/12
https://github.com/pavanky
https://github.com/pavanky
pavankyhttps://github.com/pavanky
on Dec 28, 2015https://github.com/arrayfire/arrayfire/issues/1186#issue-124128476
3.2.2https://github.com/arrayfire/arrayfire/milestone/12
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.