Coder Social home page Coder Social logo

pe's People

Contributors

wutdequack avatar

Watchers

 avatar  avatar

pe's Issues

Bug in add -e

When the command add -e n/a random name a/10000000 d/2021-12-35 is issued, exception is not caught

image.png

Invalid Date for add -e

When the command add -e n/nooooo a/12.392 d/2021-13-12 c/food is issued (such that there is an invalid date 2021-13-12), there is an invalid DateTimeParseError.

image.png

Changing of File I/O Commands

When the line add -b a/-2 m/2 is changed, such that a negative amount is input

image.png

It records the negative budget allocated without throwing any errors.

image.png

Wrong Error Message Printing on Edit of expenditure

This is the contents of the database

========================================================
list m/12
========================================================
You did not overspend for December, Good JOB!
0.00% of your overall budget has been spent
Your budget for December: $1000000000.00
Your expenditures:
  Description                  | Amount             | Date               | Category
1.worrrrrrrrkkkk               | $1000.00           | 1989-12-09         | ENTERTAINMENT
Your loans:
No Loan records yet.

On issuing this command, edit -e m/12 i/-1 n/work, an error was caught for having an amount lesser than 0 when it was in fact the index that was lesser than 0

edit -e m/12 i/-1 n/work
========================================================
Your amount has to be above $0!
========================================================

This also appears when I try it with a legitimate index. It appears that amount might not be an optional field as suggested in the UG.

image.png

========================================================
edit -e m/12 i/1 n/work
========================================================
Your amount has to be above $0!

========================================================

Writing into privileged location without permission

When trying to use the file in C:\Windows\System32, it does not catch for an error if files cannot be created in the location specified.

Log Output:

PS C:\Windows\System32> java -jar .\[CS2113T-F11-2][BudgetTracker].jar

========================================================
Current Date and Time: 16:42 12/11/2021

Database will be set to: 2021
========================================================
If you would like to change the database, please use the "year DATABASE_YEAR" command

Loading... Please Wait
========================================================
========================================================
  ____            _            _ _______             _
 |  _ \          | |          | |__   __|           | |
 | |_) |_   _  __| | __ _  ___| |_ | |_ __ __ _  ___| | _____ _ __
 |  _ <| | | |/ _` |/ _` |/ _ \ __|| | '__/ _` |/ __| |/ / _ \ '__|
 | |_) | |_| | (_| | (_| |  __/ |_ | | | | (_| | (__|   <  __/ |
 |____/ \__,_|\__,_|\__, |\___|\__||_|_|  \__,_|\___|_|\_\___|_|
                     __/ |
                    |___/
    Hello! I'm Budget Tracker
    What entries do you wish to enter today?
========================================================
java.io.IOException: The system cannot find the path specified
        at java.base/java.io.WinNTFileSystem.createFileExclusively(Native Method)
        at java.base/java.io.File.createNewFile(File.java:1035)
        at seedu.budgettracker.storage.Storage.makeStorageTextFile(Storage.java:76)
        at seedu.budgettracker.BudgetTracker.run(BudgetTracker.java:53)
        at seedu.budgettracker.BudgetTracker.main(BudgetTracker.java:31)
Parameter is not an existing file
You have a total budget of: $0.00
You have a spent a total of: $0.00
========================================================
========================================================
These are the data base you currently have!

Exception in thread "main" java.lang.NullPointerException
        at seedu.budgettracker.storage.Storage.isContainsJunk(Storage.java:131)
        at seedu.budgettracker.storage.Storage.directoryListAllFiles(Storage.java:106)
        at seedu.budgettracker.ui.TextUi.printAvailableDataBase(TextUi.java:633)
        at seedu.budgettracker.BudgetTracker.run(BudgetTracker.java:70)
        at seedu.budgettracker.BudgetTracker.main(BudgetTracker.java:31)

File I/O Load Bug

When the command, add -e n/nooooo a/12.392 d/2021-12-12 c/food is modified to add -e n/nooooo a/12.392 d/2021-13-12 c/food in the database 2021.txt, it crashes the program on start.

image.png

image.png

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.