Skip to main content

smileerror

version 1.0.1

To make it a standard structure

# external library
from smileerror.ErrorBase import ErrorBase
# or pypi
#from ErrorBase import ErrorBase


class TestClass:
	"""
 	"""
	def __init__(self):
 		"""
   		"""
	 	# private
	 	self.error	= ErrorBase()

   	def divideByZero(self, inputData: int) -> float:
   		"""
	 	"""
   		self.error.setFalse()

   		try:
	 		return inputData / 0
	
		except ZeroDivisionError as e:
			self.error.setTrue(code= 2, message= str(e))
			return -1
		
		except Exception as e:
  			self.error.setTrue(code= 1, message= str(e))
  			return -1


# render code
test	= TestClass()
result	= test.divideByZero(22)

if test.error.isTrue():
	print(f'Show the error message error: {test.error.getMessage()}')

# if there is a complex structure, let try by this way
if test.findCode(2):
	print(f'Show the error message error: {test.error.getMessage()}')

Metadata

Release files for SmileError 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SmileError 1.0.1
File Size Uploaded Provenance Actions
SmileError-1.0.1.tar.gz 2.9 kB Without provenance Details for SmileError-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for SmileError 1.0.1
File Interpreter ABI Platform Actions
SmileError-1.0.1-py3-none-any.whl Python 3 none any Details for SmileError-1.0.1-py3-none-any.whl

Total release size: 5.9 kB

Release files / SmileError-1.0.1.tar.gz

Download URL SmileError-1.0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
24cbd3659706d584021ba62d7f62ea47e81acd27bf654942324207ecde8c6ffa
BLAKE2b-256 checksum
How to use checksums
bb17e48ca19c2b3118cb29a4103c118123d9ce9dcbd2c44b7b2eedb1e911ecef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / SmileError-1.0.1-py3-none-any.whl

Download URL SmileError-1.0.1-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a80317b380f760fecb4658eb9106d767fce93fd2da6909e04330f6b65d14f69f
BLAKE2b-256 checksum
How to use checksums
6e2529351f766412d7a91de534358aaee178cefff2fcf17878ffff6cf2782965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for SmileError 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page